PyCharm和源代码管理,.idea目录,提交或不提交,这就是问题 [英] PyCharm and source control, the .idea directory, commit or not commit, that is the question
本文介绍了PyCharm和源代码管理,.idea目录,提交或不提交,这就是问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我启动了一个新的 PyCharm 项目,并希望使用
I started a new PyCharm project and want to version it with Mercurial.
项目目录中有一个.idea目录,其中包含以下文件(以及我对是否对其进行版本控制的假设)
There is a .idea directory in the project directory with the following files (and my assumption about whether to version them or not)
- .name-包含项目的名称(版本:是)
- encodings.xml-包含文本文件编码的默认值(?)(版本:是)
- misc.xml-包含有关组件的信息,以及要使用的Python可执行文件(版本:否-因为它会硬编码python.exe的路径)
- modules.xml-包含模块列表,其中包含项目名称(版本:是)
- ProjectName.iml(版本:是)
- vcs.xml-指定要使用的VCS(版本:是
- workspace.xml-似乎列出了PyCharm窗口的布局信息(版本:否)
- .name - contains the name of the project (version: yes)
- encodings.xml - contains defaults(?) for text file encoding (version: yes)
- misc.xml - contains something about components, and which Python executable to use (version: no - because it hard-codes the path to python.exe)
- modules.xml - contains a list of modules, with the name of the project in them (version: yes)
- ProjectName.iml (version: yes)
- vcs.xml - specifies which VCS to use (version: yes
- workspace.xml - seems to list layout information for PyCharm windows (version: no)
我的假设正确吗?
推荐答案
应该共享除workspace.xml以外的所有文件,请参阅常见问题解答.
All files except workspace.xml should be shared, see the FAQ.
这篇关于PyCharm和源代码管理,.idea目录,提交或不提交,这就是问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文