Git –assume-unchanged

To ignore watching/tracking a particular directory/file:

git update-index --assume-unchanged <file>


To undo it and start watching the file again:

git update-index --no-assume-unchanged <file>

Leave a Reply