I have converted a repository from SVN to git. I've added the standard .gitignore
file recommended by Microsoft to my repository and committed that change. In order to untrack files which weren't in .gitignore
before I followed below steps which recommended in this answer:
git rm -r --cached .
This removes everything from the index, then just run:
git add .
Commit it:
git commit -m ".gitignore is now working"
After the above steps, git still considers changes which supposed to be ignored.
What could have gone wrong?
Update:
I have these lines in the .gitignore file:
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
But when I create an empty txt file in this path 'my source directory\project name\bin\debug\test.txt' and run git status the file considered as a change.