【发布时间】:2019-07-30 22:49:57
【问题描述】:
我最初做了How to resolve merge conflicts in Git中提到的命令
我做到了:
git config merge.tool vimdiff
git config merge.conflictstyle diff3
git config mergetool.prompt false
然后我做了提到的命令How to use opendiff as default mergetool
我都做了:
$ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
git config --global merge.tool opendiff
我也检查过:
$ git config --global merge.tool
终端说是opendiff
但是,当我执行 git mergetool 时,它会恢复为使用 vimdiff。
如果我尝试链接答案中的第二个解决方案,即:
$ git mergetool -t opendiff
然后它工作一次。
那么我如何才能将其永久更改为opendiff
【问题讨论】:
-
验证userprofile目录下的.gitconfig文件
-
我应该验证什么?
-
[diff] 工具 = opendiff
-
设置为
opendiff -
你能看到我的编辑吗?
标签: xcode git mergetool opendiff