If you use a terminal emulator that supports imgcat
(most commonly and famously iTerm 2 implements it), drop this script into your path and add the attached snippet to your .gitignore
to generate visual diffs in your Git commandline.
Derived from https://til.hashrocket.com/posts/n44hnf0z99-show-better-image-diff-on-git
- Image-capable terminal emulator
imgcat
implementation for your emulator in your path- GraphicksMagick available in your path (an ImageMagick clone, minus the security flaws)