Last active
August 29, 2015 14:10
-
-
Save AndrewRussellHayes/6177e6eda1c0d3f58b1a to your computer and use it in GitHub Desktop.
git mergetool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+--------------------------------+ | |
| 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