Git Untrack and Retrack

If you want to untrack an accidentally committed file, then retrack it later:

[pastacode lang=”bash” message=”” highlight=”” provider=”manual”]

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

[/pastacode]

To untrack it and:

[pastacode lang=”bash” message=”” highlight=”” provider=”manual”]

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

[/pastacode]

to retrack it later!

From here: http://stackoverflow.com/questions/6964297/untrack-files-from-git

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.