Skip to content

Instantly share code, notes, and snippets.

@pietvanzoen
Created July 9, 2013 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pietvanzoen/5961756 to your computer and use it in GitHub Desktop.
Save pietvanzoen/5961756 to your computer and use it in GitHub Desktop.
Assume Unchanged :: Set a file as assume unchaged. Different to .gitignore. A file which is assumed unchanged can be in the repo but local changes aren't tracked. Handy for .htaccess or other config files. #git
#!/bin/bash
# from repo root foder
git update-index --assume-unchanged <file>
# or
git update-index --no-assume-unchanged <file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment