Sometimes you have changes on a tracked file, but you want to ignore that file (but keep it in the Git tree). Adding those files to a .gitignore
file will not work, because Git will not ignore tracked files.
However… You can ignore tracked files using the following command:
git update-index --assume-unchanged <file>
To stop ignoring the files, use the following command:
git update-index --no-assume-unchanged <file>