##Git mergetool.
$ git config --global merge.tool=vimdiff
##vimdiff key mappings.
; KEYDB.cfg | |
; 2017-09-02 16:04:54 | |
; | |
; server: http://www.labdv.com/aacs | |
; processing keys: 18 (18 from doom9.org forum) | |
; host certificates: 8 (7 from doom9.org forum) | |
; disc VUK keys: 24010 keys for 23999 discs (0 from doom9.org forum) | |
; processing keys | |
| PK | 0x810827A76E5B2CC1685E3217A23E2186 ; DK_V01-V12 |
##git mergetool
In the middle file (future merged file), you can navigate between conflicts with ]c
and [c
.
Choose which version you want to keep with :diffget //2
or :diffget //3
(the //2
and //3
are unique identifiers for the target/master copy and the merge/branch copy file names).
:diffupdate (to remove leftover spacing issues)
:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)