
Python for Geeks
By :

First, we will see a brief history of source control systems to provide a context. Modern source control systems are quite powerful. The evolution of the source control systems went through the following stages:
Let's look into what should not be checked into the source control repository.
Firstly, anything other than the source code file shouldn't be checked in. The computer-generated files should not be checked into source control. For example, let's assume that we have a Python source file named main.py
. If we compile it, the generated code does not belong to the repository. The compiled code is a derived file and should not be checked into source control. There are three reasons for this, outlined as follows:
diff
tool for that, and it will need to store the whole file each time it is committed. It will have a negative effect on the performance of the source control framework.Secondly, anything that is confidential does not belong to the source control. This includes API keys and passwords.
For the source repository, GitHub is the preferred choice of the Python community. Much of the source control of the famous Python packages also resides on GitHub. If the Python code is to be utilized across teams, then the right protocol and procedures need to be developed and maintained.