Inspired by a question on Stack Overflow, “Can I get a list of files marked –assume-unchanged?”, this alias allows me to glob mark files as unchanged (or changed) from the command-line.
[alias] unchanged = !git ls-files -v | grep \"^[[:lower:]]\" thaw = "!git update-index --no-assume-unchanged $@" freeze = "!git update-index --assume-unchanged $@"
As an example of use, build tools in the Angular/Ionic toolchain make non-permanent changes to the committed
config.xml file, in a way that’s super annoying to deal with. One
git freeze config.xml makes the problem go away.