Created
July 9, 2013 22:09
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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