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


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

查看所有标签

猜你喜欢:

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

Mastering Bitcoin

Mastering Bitcoin

Andreas M. Antonopoulos / O'Reilly Media / 2014-12-20 / USD 34.99

Mastering Bitcoin tells you everything you need to know about joining one of the most exciting revolutions since the invention of the web: digital money. Bitcoin is the first successful digital curren......一起来看看 《Mastering Bitcoin》 这本书的介绍吧!

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

在线压缩/解压 HTML 代码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码