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


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

查看所有标签

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

Mobilizing Web Sites

Mobilizing Web Sites

Layon, Kristofer / 2011-12 / 266.00元

Everyone has been talking about the mobile web in recent years, and more of us are browsing the web on smartphones and similar devices than ever before. But most of what we are viewing has not yet bee......一起来看看 《Mobilizing Web Sites》 这本书的介绍吧!

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

在线压缩/解压 HTML 代码

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

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

HEX CMYK 互转工具