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
I just tried an npm package hosted on Github: pretty-diff
You install it via npm and run it as you would with git-diff
, for example:
pretty-diff HEAD^
A new browser window opens and you can save it as html. I've tried to open it again in a different browser and colors are still showing. You can also use your github account to create gists and share them.