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?
gitignore file in the VCS root directory, you can right-click anywhere in the Project window, choose New | File and type . gitignore in the New File dialog.
Under the Version Control node, of the Settings dialog box, click Ignored Files. The Ignored Files dialog box opens. 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.
If you want to ignore a file that you've committed in the past, you'll need to delete the file from your repository and then add a . gitignore rule for it. Using the --cached option with git rm means that the file will be deleted from your repository, but will remain in your working directory as an ignored file.
Try:
.gitignore
should now be included in .ignore
along with .hgignore
etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With