Skip to content

Instantly share code, notes, and snippets.

@just3ws
Created March 11, 2015 21:00
Show Gist options
  • Save just3ws/71f2c10584f90cde9674 to your computer and use it in GitHub Desktop.
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.
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