haymansfield haymansfield - 4 months ago 58
Git Question

Git: Ignore tracked files

I have some tracked files in a repository which are automatically modified when building the code. I don't want to untrack them, I just don't want them to appear as modified and I don't want them to be staged when I git add.

Is this possible?



git update-index --assume-unchanged file

To undo and start tracking again:

git update-index --no-assume-unchanged [<file> ...]