vimdiff
进入冲突解决窗口
1 | git mergetool |
窗口显示四部分内容
LOCAL – this is file from the current branch
BASE – common ancestor, how file looked before both changes
REMOTE – file you are merging into your branch
MERGED – merge result, this is what gets saved in the repo
移动窗口方法
1 | Ctrl w + h # move to the split on the left |
处理冲突
可移动到merge窗口去手动改
使用命令
1
2
3:diffg RE # get from REMOTE
:diffg BA # get from BASE
:diffg LO # get from LOCAL
保存退出
1 | :wqa |
Meld
todo