Last Updated: February 25, 2016
·
2.306K
· jacaetevha

git diff in your editor

Viewing git diffs on the command line is OK for small diffs, but I like viewing larger ones in a diff-aware editor.

Vim

git diff | vim -R -

MacVim

git diff | mvim -R -

Sublime

git diff | subl

TextMate

git diff | mate

3 Responses
Add your response

How to use an external diff-tool via get config files: http://technotales.wordpress.com/2009/05/17/git-diff-with-vimdiff/

over 1 year ago ·

Thanks, @lokiastari. That's even better!

over 1 year ago ·