Daily Shaarli

All links of one day in a single page.

September 6, 2017

Git ignore local changes to portions of tracked files - Stack Overflow
thumbnail

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]"