Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
[diff]
external = git_diff_wrapper.bat
[pager]
diff =
path\to\gvim.exe -d "%2" "%5"
Owner

hotoo commented Jul 31, 2010

Windows 下用 gvim 的 diff 查看 git diff

  1. 把 .gitconfig 的内容加入到 .gitconfig 中;
  2. 把 git_diff_wrapper.bat 保存到 $PATH 环境变量所在目录。

参考 http://technotales.wordpress.com/2009/05/17/git-diff-with-vimdiff/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment