32

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?

Community
  • 1
  • 1
cb4
  • 6,689
  • 7
  • 45
  • 57

4 Answers4

43

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.

Brian
  • 6,910
  • 8
  • 44
  • 82
Gavin Munro
  • 446
  • 5
  • 2
12

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.

adixxov
  • 129
  • 1
  • 5
  • 2
    I can't find this option on: 2021.3 – Natan Mar 27 '22 at 15:55
  • 1
    You need to install it first like the accepted answer, restart you're pycharm and do as this answer said. Yes, this is frustrating, 2 answers need to be joined to make it work. – Rikudo Pain Sep 13 '22 at 16:59
5

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.

Makoto
  • 104,088
  • 27
  • 192
  • 230
  • I have that plug-in installed and it is helpful. Is it possible to manage it via the GUI? – cb4 Apr 02 '16 at 21:19
3

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