Untrack files from git temporarily
git update-index should do what you want This will tell git you want to start ignoring the changes to the filegit update-index –assume-unchanged path/to/file When you want to start keeping track againgit update-index –no-assume-unchanged path/to/file Github Documentation: update-index