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


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

查看所有标签

猜你喜欢:

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

Spring Into HTML and CSS

Spring Into HTML and CSS

Molly E. Holzschlag / Addison-Wesley Professional / 2005-5-2 / USD 34.99

The fastest route to true HTML/CSS mastery! Need to build a web site? Or update one? Or just create some effective new web content? Maybe you just need to update your skills, do the job better. Welco......一起来看看 《Spring Into HTML and CSS》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具