Skip to content

Instantly share code, notes, and snippets.

@bsa7
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

  • Save bsa7/cc4678c277fdafafea57 to your computer and use it in GitHub Desktop.

Select an option

Save bsa7/cc4678c277fdafafea57 to your computer and use it in GitHub Desktop.
git change file in index locally

example, if you want to change gitignore, but only in your local repo, do next:

git update-index --assume-unchanged .gitignore

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