ini Git for Windows:将Helix Visual Merge Tool(P4Merge)设置为默认的mergetool
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ini Git for Windows:将Helix Visual Merge Tool(P4Merge)设置为默认的mergetool相关的知识,希望对你有一定的参考价值。
Open `git-bash` and type
```bash
git config --global merge.tool p4merge
git config --global mergetool.p4merge.cmd "p4merge \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\""
git config --global mergetool.p4merge.trustExitCode false
git config --global mergetool.keepBackup false
git config --global diff.tool p4merge
git config --global difftool.p4merge.cmd "p4merge \"$LOCAL\" \"$REMOTE\""
```
The `.gitconfig` should look like this
[merge]
keepBackup = false
tool = p4merge
[mergetool]
prompt = false
[mergetool "p4merge"]
cmd = p4merge \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\"
keepTemporaries = false
trustExitCode = false
keepBackup = false
[diff]
tool = p4merge
[difftool]
prompt = false
[difftool "p4merge"]
cmd = p4merge \"$LOCAL\" \"$REMOTE\"
keepTemporaries = false
trustExitCode = false
keepBackup = false
以上是关于ini Git for Windows:将Helix Visual Merge Tool(P4Merge)设置为默认的mergetool的主要内容,如果未能解决你的问题,请参考以下文章
将 Git 客户端(如 GitHub for Windows)配置为不要求身份验证
如何强制 Git for Windows 的 bash-shell 不将路径字符串转换为 Windows 路径?
Git for Windows之推送本地版本库到远程仓库
WINDOWS BAT for循环的中断及当前循环值的获取
WINDOWS BAT for循环的中断及当前循环值的获取
如何使用git for windows上传文件到git仓库