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

后端 未结 4 1848
挽巷
挽巷 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:08

    If PyCharm offers you to commit the files, it means that you have already added them to Git. You need to remove them using 'git rm --cached' and commit the change. After that, they will be ignored by the integration according to your .gitignore settings.

提交回复
热议问题