git – How to use gitignore in Pycharm?
git – How to use gitignore in Pycharm?
Try:
- Go to Settings
- Go to Plugins
- Search for: .ignore
- Install
- Restart PyCharm
.gitignore
should now be included in .ignore
along with .hgignore
etc.
In PyCharm Pro 2019.3, I was able to do this by
– right click folder or file I wanted to add to gitignore.
– scroll to and click on Git
– scroll to and click on Add to .gitignore
If a gitignore file is not already there, PyCharm will create one and add it to the main project folder and add your chosen folder/file to it.
git – How to use gitignore in Pycharm?
There are plugins available in the JetBrains repository to manage this; one of them that I make use of is .ignore, which allows you to have more insight into what files youre actually ignoring in the IDE.