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

后端 未结 4 1840
挽巷
挽巷 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 10:54

    You can configure ignored files.

    Under the Version Control node, of the Settings dialog box, click Ignored Files. The Ignored Files dialog box opens.

    More easily:

    Tip

    You can also add files to ignore list on-the-fly. A new file under the Unversioned Files change list, has Ignore command on its context menu.

提交回复
热议问题