Make git ignore changes to files

I post this here so I won’t forget it.

git update-index --assume-unchanged file

When the “assume unchanged” bit is on, git stops checking the file for modifications.
To tell git when you change the file:

git update-index --no-assume-unchanged file