Pycharm - Integration of Version Control


Advertisements

PyCharm supports various subversion control systems. This feature helps in improving the code base managing various versions together. This chapter talks about this concept in detail.

Steps Involved

You will have to go through the following steps for initializing and managing version control system −

Initializing a Subversion Control System

To start the version control system in a systematic way, it is important to initialize it. Various options are available in PyCharm for different version control systems.

Control System Version Control

Ignoring File

In any project of PyCharm where we set up the default project and the virtual environment on it, we should also create its management with version control system. For example, Git includes .gitignore files which are ignored during commit operation, however, includes some of its configurations. Now, go to the Settings menu and check for the following −

Ignoring File

It includes various configurations for checking the path of Git executable and verifying if any files are ignored.

Ignored File

Configuration of GitHub

PyCharm includes settings to include configuration of GitHub repository, where a user can include username, password and other credentials, if any.

Github

Once you are done with the settings mentioned, you can directly add and commit the local changes to Git repository.

Advertisements