Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
git mergetool
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`
wqa # save and quit all
qa # quit all, no write
qa! # silence error and quit all without saving
wqall # write and quit all
# walkthrough
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment