Created
March 11, 2015 21:00
-
-
Save just3ws/71f2c10584f90cde9674 to your computer and use it in GitHub Desktop.
Toggle whether a file is changeable or unchangeable in a repo as well as list the unchangeable files.
This file contains hidden or 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
git-assume-unchangeable () { | |
git update-index --assume-unchanged "$@" | |
} | |
git-assume-changeable () { | |
git update-index --no-assume-unchanged "$@" | |
} | |
git-show-unchangeable () { | |
git ls-files -v | grep -e "^[hsmrck]" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment