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
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/40118/6cd8373fb8a3efe36369a0351726e7d7.png)
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
·
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/34052/d21ebccf20562e370eb0a8cf170a0580.jpeg)
Thanks, @lokiastari. That's even better!
over 1 year ago
·
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/40118/6cd8373fb8a3efe36369a0351726e7d7.png)
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
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#