Excluding .idea directory from project pulled by git clone

85 views Asked by At

This seems like a very stupid and rudimentary question. This seems to be due to my lack of understanding of git.

but I'm not good at English, it was difficult to properly search for an answer to this issue..

I tried to change my IDE from STS4 to intelliJ while changing my computer to mac this time.

The only thing I searched for was an answer to add content to .gitignore, which seems to only apply when creating a new project and uploading it to github for the first time.

However, the project I cloned has already been developed to some extent, and .gitignore already exists.

What I want is simple: Excluding the .idea directory from the unstaged list on my local machine.. of course it can be done with cli, but is there a way to do it in intelliJ?

2

There are 2 answers

2
Dmytro Bilozor On BEST ANSWER

Click the right mouse button on .idea folder and do as I show on screenshot

0
Tayyab Munir On

Go to your .gitignore file and add below line in it

.idea