Ignore future changes of a tracked file To ignore changes of tracked file git update-index --assume-unchanged <file> To start tracking changes of file again: git update-index --no-assume-unchanged <file> Remove file from being tracked git rm --cached <file> git commit -m 'chore: remove file'