Git Alias to Flag Files Unchanged

in code

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.

  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.

Coffee is Good

in code

Replace Odd Numbers of Spaces Only

in code

Your email address will not be published. Required fields are marked *