分类: LINUX
2014-07-24 09:27:42
在UserName/bin/目录下新建一个git-diff-wrapper.sh
#!/bin/sh
# diff is called by git with 7 parameters:
# path old-file old-hex old-mode new-file new-hex new-mode
"bcompare" "$2" "$5" | cat
在UserName/目录下修改.gitconfig文件
[user]
name = wanqi
email = wanqi@hymost.com
[color]
ui = auto
[diff]
external = /home/UserName/bin/git-diff-wrapper.sh
最后就git diff就ok了。
转载自:http://www.cnblogs.com/wanqieddy/archive/2012/05/04/2482190.html