Visual Studio 2017 中的Git源代码控制中使用BeyondCompare 3

栏目: ASP.NET · 发布时间: 7年前

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显示效果为:

Visual Studio 2017 中的Git源代码控制中使用BeyondCompare 3

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效果为:

Visual Studio 2017 中的Git源代码控制中使用BeyondCompare 3


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Stylin' with CSS

Stylin' with CSS

Wyke-Smith, Charles / 2012-10 / $ 50.84

In this completely revised edition of his bestselling Stylin' with CSS, veteran designer and programmer Charles Wyke-Smith guides you through a comprehensive overview of designing Web pages with CSS, ......一起来看看 《Stylin' with CSS》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

SHA 加密
SHA 加密

SHA 加密工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试