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
Written by Jason Rogers
Related protips
3 Responses
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
·
Though about it a bit more:
http://coderwall.com/p/bski2w?i=1&p=1&q=&t[]=!!mine&t[]=!!bookmarks
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#