gpt4 book ai didi

atlassian-sourcetree - 是否在Sourcetree中将Devart的代码比较设置为自定义差异和合并工具?

转载 作者:行者123 更新时间:2023-12-04 04:53:06 33 4
gpt4 key购买 nike

如何在Sourcetree中添加Devart的Code Compare作为自定义差异和合并工具?

最佳答案

我通过添加像Alex建议的代码来修改了C:\Users\[User Name]\.gitconfig文件:

[difftool "codecompare"]
cmd = 'C:\\Program Files\\Devart\\Code Compare\\codecompare.exe' -W \"$LOCAL\" \"$REMOTE\"
renames = true

[diff]
tool = codecompare
guitool = codecompare

[mergetool "codecompare"]
cmd = 'C:\\Program Files\\Devart\\Code Compare\\codemerge.exe' -MF=\"$LOCAL\" -TF=\"$REMOTE\" -BF=\"$BASE\" -RF=\"$MERGED\"
trustExitCode = true

[mergetool]
keepBackup = false

[merge]
tool = codecompare
guitool = codecompare

然后我将SourceTree Tools -> Options -> Diff更改为System Default。

之后,我的 Code Compare开始在Visual Studio内正常运行,真是太棒了。

希望能帮助到你!

Code compare integration with source control systems

关于atlassian-sourcetree - 是否在Sourcetree中将Devart的代码比较设置为自定义差异和合并工具?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28232833/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com