for my upcoming Bachelor thesis, I am required to print out the git-diff output for the appendix of the paper. I really like the output of git diff --color-words, b
git diff --color-words
Use aha. You can install it in ubuntu with sudo apt-get install aha. Also see https://github.com/theZiz/aha.
aha
sudo apt-get install aha
$ git diff --color-words | aha > index.html $ firefox index.html
Firefox should then be able to print it in color. Check out aha --help for some other cool options.
aha --help