I'm looking at switching to git (from Perforce). I'm doing an initial add of files to my repository, but for some reason my .gitignore
file isn't being used. When verifying the files being added via git status
I can see files listed that should be ignored. I must be missing something very basic.
Here's a very simplified directory structure that I'm testing with:
d:/git/
.git
Test/
test.suo
bin/
Debug/
test.dll
.gitignore
And here is the relevant part of my .gitignore
file:
**/*.suo
**/[Bb]in/Debug
When adding the files I call:
git add Test
And then I verify the files that have been added:
git status
Which shows me:
new file: Test/bin/Debug/test.dll
new file: Test/test.suo
What am I missing? Why are these files being included?