在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了。

 

 

相关文章:

  • 2022-12-23
  • 2021-07-25
  • 2021-11-28
  • 2021-06-05
  • 2021-11-17
  • 2021-04-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-31
  • 2022-12-23
  • 2021-11-09
  • 2021-09-27
  • 2021-06-02
相关资源
相似解决方案