How do I ignore PyCharm configuration files in a git repository?

后端 未结 4 1959
挽巷
挽巷 2021-01-30 10:28

I don\'t want to commit my PyCharm config files (e.g. .idea/codeStyleSettings.xml) to my git repository, so I added the following to my .gitignore file:

.idea/
m         


        
4条回答
  •  时光取名叫无心
    2021-01-30 11:19

    You should not ignore all of the files under .idea directory. Some of them are local and tied to your personal preferences and some other are global settings of the PyCharm project that most likely should be stored in git.

    Here is the link to an updated .gitignore snippet for PyCharm and other JetBrains IDEs.

提交回复
热议问题