Skip to content

Instantly share code, notes, and snippets.

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

  • Save andybest/59e9356656a1e0f19081 to your computer and use it in GitHub Desktop.

Select an option

Save andybest/59e9356656a1e0f19081 to your computer and use it in GitHub Desktop.
Git tips

Always assume a file in the repo is unchanged (like putting an already committed file into .gitignore)

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

Undo the above

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

List files that are assumed unchanged

git ls-files -v|grep '^h'

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