774 shaares
10 private links
10 private links
TL;DR
Try using this command:
git update-index --assume-unchanged FILENAME_TO_IGNORE
To reverse it (if you ever want to commit changes to it), use:
git update-index --no-assume-unchanged
List 'assume unchanged' files under current directory:
git ls-files -v | grep -E "^[a-z]"