vimdiff
发布时间:2020-12-15 22:25:40 所属栏目:安全 来源:网络整理
导读:使用vimdiff作为git mergetool 设置 git mergetool 为 vimdiff git config --global merge.tool vimdiffgit config --global merge.conflictstyle diff3git config --global mergetool.prompt false 用vimdiff解决合并冲突 运行 git mergetool ,vim将展示如
使用vimdiff作为git mergetool设置 git mergetool 为 vimdiffgit config --global merge.tool vimdiff git config --global merge.conflictstyle diff3 git config --global mergetool.prompt false 用vimdiff解决合并冲突运行 +--------------------------------+ | LOCAL | BASE | REMOTE | +--------------------------------+ | MERGED | +--------------------------------+ 移动光标到不同的split Ctrl w + h # move to the split on the left Ctrl w + j # move to the split below Ctrl w + k # move to the split on top Ctrl w + l # move to the split on the right 移动到 :diffg RE " get from REMOTE :diffg BA " get from BASE :diffg LO " get from LOCAL 最后使用:wqa保存更改并关闭所有的分割 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |