Use MacVim as your git diff tool (no external script)
Add this to your gitconfig
file:
[diff]
tool = mvimdiff
[difftool "mvimdiff"]
cmd = mvim -f -d \"$LOCAL\" \"$REMOTE\"
You can now invoke it with git difftool $FILE
to get local differences on a file in your gitrepo. Invoking it without any arguments runs through every modified file in your repo.
Written by Nathan Long
Related protips
1 Response
Works great, thanks! I did have to add the mvim script to my $PATH to get it working though (which was easy enough, I just downloaded the script separately from Github).
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Diff
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#