Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 347 Bytes

locally-ignore-file-from-git.md

File metadata and controls

14 lines (8 loc) · 347 Bytes

Ignore a file from git (2016-02-17)

Can be done with:

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

This way the file will remain there, but git won't track any changes.

To undo the action:

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

You can see all ignored files in the current repository with:

git ls-files -v | grep '^[[:lower:]]'