'How do you create a gitignore file in pycharm? (windows)

What i could find relating to git settings on pycharm



Solution 1:[1]

First install the ignore plugin:

PyCharm ignore plugin

Then right-click the project root directory: New > .ignore File > .gitignore

create a .gitignore file in PyCharm

If you want to simply create a .gitignore file in PyCharm, go to the PyCharm terminal and type: echo "" > .gitignore. Then open the .gitignore file, delete the double quotes, and update however you'd like.

Solution 2:[2]

Create a file with name .gitignore in the root directory of your project. Add all the files which you want git to ignore while versioning, in it.

Solution 3:[3]

In the Project tool window, select one or more files you wish to be ignored, then right click on the selection, then Git > Add to .gitignore > Add to .gitignore. If the .gitignore file does not exist, you will be asked for confirmation to create it.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jarad
Solution 2 Richa Bhuwania
Solution 3 mportes