Skip to content

Instantly share code, notes, and snippets.

@hotoo
Created July 31, 2010 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hotoo/502217 to your computer and use it in GitHub Desktop.
Save hotoo/502217 to your computer and use it in GitHub Desktop.
[diff]
external = git_diff_wrapper.bat
[pager]
diff =
path\to\gvim.exe -d "%2" "%5"
@hotoo
Copy link
Author

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