The goal of this is to ignore files that are checked in, but should never change (although you have some changes locally), or files/folders you want to ignore locally but should not be included in .gitignore for everyone.
Ignore file(s):
git update-index --assume-unchanged <file/folder>
Check all ignored files:
git ls-files -v | findstr '^h'
Undo ignore file(s):
git update-index --no-assume-unchanged