HELLO, I’M SERHAT AND THIS IS MY FANCY TITLE.

Untrack files in git

When you do some local changes on your code, but wish to untrack them in Git you can use --assume-unchanged flag.

This will tell git you want to start ignoring the changes to the file:

git update-index --assume-unchanged path/to/file

When you want to start keeping track again:

git update-index --no-assume-unchanged path/to/file

Date:
Categories: tech, git

Share this post!


Blog Comments powered by Disqus.