Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
git mergetool
+--------------------------------+
| LOCAL | BASE | REMOTE |
+--------------------------------+
| MERGED |
+--------------------------------+
Local : The branch merging INTO
Base : The most recent shared version. This is where diffget
and diff put commands are getting or putting into
Remote : The branch being merged into local
Merged : The file containing the conflict markers. Git has performed
as much automatic conflict resolution as possible and the
state of this file is a combination of both LOCAL and REMOTE
with conflict markers surrounding anything that Git could not
resolve itself. The mergetool should write the result of the
resolution to this file.
# command effect
[c jump to previous hunk
]c jump to next hunk
dp shorthand for `:diffput`
do shorthand for `:diffget`
#quit
wqa # save and quit all
qa # quit all, no write
qa! # silence error and quit all without saving
wqall # write and quit all
# walkthrough
# http://vimcasts.org/episodes/fugitive-vim-resolving-merge-conflicts-with-vimdiff/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.