Un-track files from git temporarily
from: https://stackoverflow.com/questions/6964297/untrack-files-from-git-temporarily
When I cloned my project in a different machine, I realized some symbolic links are broken with different paths. Thus I need to change those links according to my second system but did not want to commit those changes. For this case, I need to un-track those files and this is how to do it with git command:
$ git update-index --assume-unchanged path/to/file $ git update-index --no-assume-unchanged path/to/file
The first command will ignore the changes on the file and the second command will track the changes again on the file.