Ignore local changes to repository files or directories git update-index --assume-unchanged path/to/file/or/directory
Or you can alias it in your ~/.gitconfig [alias] au = update-index --assume-unchanged
update the index and removes the assume-unchanged flag so your changes can be committed git update-index --no-assume-unchanged path/to/file/or/directory
or you can alias it in your ~/.gitconfig [alias] nau = update-index --no-assume-unchanged
List files/directories that have been marked as assume-unchanged
lower-case h
in first column tells us the file/directory has
been marked as assume-unchanged
git ls-files -v [path/to/directory]
Or alias it in your ~/.gitconfig this one passes the list to grep so we can filter on the lowercase letter [alias] ignored = !git ls-files -v | grep "^[[:lower:]]"