Skip to content

Instantly share code, notes, and snippets.

@StudioLE
Created April 4, 2015 14:57
Show Gist options
  • Save StudioLE/e6c254f02aa8d145562f to your computer and use it in GitHub Desktop.
Save StudioLE/e6c254f02aa8d145562f to your computer and use it in GitHub Desktop.
Hide changes to files in git but preserve the original file in the repository
# To hide future changes
git update-index --assume-unchanged filepath
# To unhide changes
git update-index --no-assume-unchanged filepath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment