Pycharm 简明教程
Pycharm - Integration of Version Control
PyCharm 支持各种 Subversion 控制系统。此功能有助于改进一起管理各种版本的代码库。本章对此概念进行了详细讨论。
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
要系统地启动版本控制系统,初始化它非常重要。PyCharm 为不同的版本控制系统提供了各种选项。
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.


Ignoring File
在 PyCharm 的任何项目中,我们在其上设置了默认项目和虚拟环境时,还应该使用版本控制系统创建其管理。例如,Git 包含在提交操作期间被忽略的 .gitignore 文件,但包括一些其配置。现在,转到设置菜单并检查以下内容−
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 −

它包括用于检查 Git 可执行文件的路径和验证是否忽略任何文件的各种配置。
It includes various configurations for checking the path of Git executable and verifying if any files are ignored.

Configuration of GitHub
PyCharm 包含用于配置 GitHub 存储库的设置,用户可以在其中添加用户名、密码和其他凭据(如果有)。
PyCharm includes settings to include configuration of GitHub repository, where a user can include username, password and other credentials, if any.

完成后,你可以直接将本地更改添加到 Git 存储库并提交。
Once you are done with the settings mentioned, you can directly add and commit the local changes to Git repository.