Git Diff in a text editor
If you want to have a look through your git diffs in a more useful editor than the default, you can just pipe it in on the command line:
git diff branch1 branch2 file | mate
Or, you can set your GIT_PAGER environment variable to your editor of choice.
export GIT_PAGER=mate
Thanks to the good people at Stack Overflow.