How to ignore temporally files from git assuming them unchanged

Sometimes there are reasons why we don’t want to accidentally commit files with information that shouldn’t be on the log. In those cases, assume unchanged it’s what you need.

git update-index --assume-unchanged [FILE_NAME]

And afterwards when you need to add it to a commit

git update-index --no-assume-unchanged [FILE_NAME]