Skip to content

Commit 26c26b9

Browse files
committed
Merge pull request #83 from schacon/advanced-merging-ch7
Add Advanced Merging to Ch7
2 parents 2c8d5f5 + fc710d0 commit 26c26b9

File tree

8 files changed

+656
-137
lines changed

8 files changed

+656
-137
lines changed

book/03-git-branching/sections/basic-branching-and-merging.asc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ You can close the ticket in your ticket-tracking system, and delete the branch:
182182
$ git branch -d iss53
183183
----
184184

185+
[[_basic_merge_conflicts]]
185186
==== Basic Merge Conflicts
186187

187188
(((merging, conflicts)))
@@ -245,6 +246,7 @@ please contact us at [email protected]
245246
This resolution has a little of each section, and the `<<<<<<<`, `=======`, and `>>>>>>>` lines have been completely removed.
246247
After you've resolved each of these sections in each conflicted file, run `git add` on each file to mark it as resolved.
247248
Staging the file marks it as resolved in Git.
249+
248250
If you want to use a graphical tool to resolve these issues, you can run `git mergetool`, which fires up an appropriate visual merge tool and walks you through the conflicts:(((git commands, mergetool)))
249251

250252
[source,shell]
@@ -268,6 +270,8 @@ If you want to use a merge tool other than the default (Git chose `opendiff` in
268270
Just type the name of the tool you'd rather use.
269271
In <<_git_tools>>, we'll discuss how you can change this default value for your environment (Git gave us a helpful hint).
270272

273+
If you need more advanced tools for resolving tricky merge conflicts, we cover more on merging in <<_advanced_merging>>.
274+
271275
After you exit the merge tool, Git asks you if the merge was successful.
272276
If you tell the script that it was, it stages the file to mark it as resolved for you.
273277
You can run `git status` again to verify that all conflicts have been resolved:

book/07-git-tools/1-git-tools.asc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ include::sections/rewriting-history.asc[]
1919

2020
include::sections/reset.asc[]
2121

22-
include::sections/undoing-merges.asc[]
22+
include::sections/advanced-merging.asc[]
23+
24+
include::sections/rerere.asc[]
2325

2426
include::sections/debugging.asc[]
2527

@@ -29,13 +31,11 @@ include::sections/bundling.asc[]
2931

3032
include::sections/replace.asc[]
3133

32-
include::sections/rerere.asc[]
33-
3434
include::sections/credentials.asc[]
3535

3636
=== Summary
3737

3838
You’ve seen a number of advanced tools that allow you to manipulate your commits and staging area more precisely.
3939
When you notice issues, you should be able to easily figure out what commit introduced them, when, and by whom.
40-
If you want to use subprojects in your project, you’ve learned a few ways to accommodate those needs.
40+
If you want to use subprojects in your project, you’ve learned how to accommodate those needs.
4141
At this point, you should be able to do most of the things in Git that you’ll need on the command line day to day and feel comfortable doing so.

0 commit comments

Comments
 (0)