I have .gitignore
d .DS_Store
and .gitignore
files. But still see them in the \"git status\".
Can someone explain to me how I can m
If you want to ignore a change to a file that is tracked by git you can specify to git that it should assume that the file has not changed:
git update-index --assume-unchanged file
and to start tracking changes again do:
git update-index --no-assume-unchanged file
if you have already added a file that should be completely ignored (.gitignore) you have to git rm
it first.
reference: https://www.kernel.org/pub/software/scm/git/docs/git-update-index.html
source: http://blog.pagebakers.nl/2009/01/29/git-ignoring-changes-in-tracked-files/