cb4
cb4

Reputation: 9363

How to use gitignore in Pycharm?

Similar questions like this one about how to ignore files in a git repo are typically answered by showing which git command to execute on the command line. Even this one, although it is PyCharm specific, does the same.

Is there a way to manage this file through the PyCharm GUI?

Upvotes: 37

Views: 89007

Answers (4)

Muhammad Irfan Aslam
Muhammad Irfan Aslam

Reputation: 795

Install the plugin in Pycharam professional

   - Go to the right corner and click on the Settings icon
   - Now on Plugins

enter image description here

 - Now type the name of the plugin you want to install for example "ignore"

enter image description here

Congatulation plugin is installed

Upvotes: 3

adixxov
adixxov

Reputation: 149

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.

Upvotes: 14

Gavin Munro
Gavin Munro

Reputation: 544

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.

Upvotes: 52

Makoto
Makoto

Reputation: 106430

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 you're actually ignoring in the IDE.

Upvotes: 5

Related Questions