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.

[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.



Replace Odd Numbers of Spaces Only

in code

factory_bot Email Factory

in code

Coffee is Good

in code


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