VS中如果source control选择git, 则并没有在vs中集成类似TFS的更改UI。需要到git的config文件中去手动更改。
1. git全局config。
路径在C:\Users\本地账号\.gitconfig, 打开后更改为:
[diff]
tool = beyondcompare
[difftool]
prompt = true
[difftool "beyondcompare"]
cmd = \"C:\\Program Files (x86)\\Beyond Compare 3\\BComp.exe\" \"$LOCAL\" \"$REMOTE\"
keepBackup = false
[merge]
tool = beyondcompare
[mergetool]
prompt = true
[mergetool "beyondcompare"]
cmd = \"C:\\Program Files (x86)\\Beyond Compare 3\\BComp.exe\" \"$REMOTE\" \"$LOCAL\" \"$BASE\" \"$MERGED\"
keepBackup = false
trustExitCode = true
VS中的git设置的UI显示效果为:
2. git库下的config文件更改,
路径在库文件夹下的\.git\config, 打开后同样更改为:
[diff]
tool = beyondcompare
[difftool]
prompt = true
[difftool "beyondcompare"]
cmd = \"C:\\Program Files (x86)\\Beyond Compare 3\\BComp.exe\" \"$LOCAL\" \"$REMOTE\"
keepBackup = false
[merge]
tool = beyondcompare
[mergetool]
prompt = true
[mergetool "beyondcompare"]
cmd = \"C:\\Program Files (x86)\\Beyond Compare 3\\BComp.exe\" \"$REMOTE\" \"$LOCAL\" \"$BASE\" \"$MERGED\"
keepBackup = false
trustExitCode = true
VS中的存储库的设置的UI效果为:
文章参考(多谢作者分享):https://www.codercto.com/a/47065.html
来源:oschina
链接:https://my.oschina.net/u/4307176/blog/3597210