- Install diff-so-fancy via their website (or just run
npm install -g diff-so-fancy
) - Add the following to your
.gitconfig
file:
[core]
pager = diff-so-fancy | less --tabs=1,5 -R
- I find that these colors work best with it, but it's up to you if you want to add them to your
.gitconfig
or not.
[color "diff"]
meta = "yellow bold"