Any files that other collaborators should not have in their environment to compile the source code should be placed in a .gitignore file. If you are sure that other collaborators are using the same IDE as yours, you should place the entire folder there.
The expression **.ide/ works to block this directory.
Now, if you are not sure that everyone will use the same IDE, you can put the same expression inside .git/info/exclude , which will create an exclusive entry exclusively for you in this project.
Makoto
source share