git – How to use gitignore in Pycharm?

git – How to use gitignore in Pycharm?

Try:

  1. Go to Settings
  2. Go to Plugins
  3. Search for: .ignore
  4. Install
  5. 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.

Leave a Reply

Your email address will not be published.