tags:

views:

148

answers:

2

i have created a .gitignore file inn the same folder that the with the .git folder. but i still get the files i'm trying to ignore when doing a rescan of the repository.

this is the content of the file.

# Ignored files
*.suo 
*.user 
bin 
obj 
*.pdb 
*.cache 
*_svn 
*.svn 
*.suo 
*.user 
*.build-res 
TestResults 
_ReSharper*

what am i doing wrong? where is the file suppose to be located?

+1  A: 

You are locating it right. .gitignore should be at the same folder, where is .git folder located. File inside also looks correct. However, I dont have a comment line at the top..

Stewie Griffin
+1  A: 

You need to make sure the file you are still seeing are not currently committed or staged.

If you remove them (git rm or git rm --cached), and then add them as private file, then they will be ignored.

VonC
this must be the reason yeah, thanks.
Darkmage