git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Added details about resolving conflicts
@ 2008-08-22 22:49 Junio C Hamano
  0 siblings, 0 replies; only message in thread
From: Junio C Hamano @ 2008-08-22 22:49 UTC (permalink / raw)
  To: git; +Cc: Dan Hensgen

From: Dan Hensgen <dan@macbook.danhensgen.com>
Date: Thu, 21 Aug 2008 23:32:00 -0400
Subject: [PATCH] Added details about resolving conflicts

Signed-off-by: Dan Hensgen <dan@methodhead.com>
---

 * This was sent in private to me by mistake; redistributing it for wider
   comments.

 Documentation/git-merge.txt |   24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/Documentation/git-merge.txt b/Documentation/git-merge.txt
index 17a15ac..685e1fe 100644
--- a/Documentation/git-merge.txt
+++ b/Documentation/git-merge.txt
@@ -126,13 +126,25 @@ After seeing a conflict, you can do two things:
    up working tree changes made by 2. and 3.; 'git-reset --hard' can
    be used for this.
 
- * Resolve the conflicts.  `git diff` would report only the
-   conflicting paths because of the above 2. and 3.
-   Edit the working tree files into a desirable shape
-   ('git mergetool' can ease this task), 'git-add' or 'git-rm'
-   them, to make the index file contain what the merge result
-   should be, and run 'git-commit' to commit the result.
+ * Resolve the conflicts.  Git will mark the conflicts in
+   the working tree.  Edit the files into shape and
+   'git-add' to the index.  'git-commit' to seal the deal.
 
+You can work through the conflict with a number of tools:
+
+ * Use a mergetool.  'git mergetool' to launch a graphical
+   mergetool which will work you through the merge.
+
+ * Look at the diffs.  'git diff' will show a three-way diff,
+   highlighting changes from both the HEAD and remote versions.
+
+ * Look at the diffs on their own. 'git log --merge -p <path>'
+   will show diffs first for the HEAD version and then the
+   remote version.
+
+ * Look at the originals.  'git show :1:filename' shows the
+   common ancestor, 'git show :2:filename' shows the HEAD
+   version and 'git show :3:filename' shows the remote version.
 
 SEE ALSO
 --------

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-22 22:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-22 22:49 [PATCH] Added details about resolving conflicts Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).