Shivam Anand
Shivam Anand

Reputation: 111

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

What i could find relating to git settings on pycharm

Upvotes: 1

Views: 7847

Answers (3)

Jarad
Jarad

Reputation: 18883

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.

Upvotes: 6

mportes
mportes

Reputation: 1837

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.

Upvotes: 2

Richa Bhuwania
Richa Bhuwania

Reputation: 180

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.

Upvotes: -1

Related Questions