Skip to content

Instantly share code, notes, and snippets.

@iambmelt
Created October 7, 2015 22:57
Show Gist options
  • Save iambmelt/2dd3195966359f2ede3f to your computer and use it in GitHub Desktop.
Save iambmelt/2dd3195966359f2ede3f to your computer and use it in GitHub Desktop.
Git - Ignore changes to a tracked file
git update-index --assume-unchanged <file>
@iambmelt
Copy link
Author

iambmelt commented Nov 3, 2015

and the reverse (aka start tracking changes again)

git update-index --no-assume-unchanged <file>

@ricalo
Copy link

ricalo commented Dec 11, 2015

Love this one. I use it all the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment