Skip to content

Commit 812855b

Browse files
authored
Merge pull request #1420 from salewski/ads/clarify-try-merge-in-ch7-submodules
submodules.asc: clarify DbConnector/try-merge example
2 parents e6102cf + 6629642 commit 812855b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

book/07-git-tools/sections/submodules.asc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ This is what you'll have to merge in and resolve.
688688
You can either just try the merge with the SHA-1 directly, or you can create a branch for it and then try to merge that in.
689689
We would suggest the latter, even if only to make a nicer merge commit message.
690690

691-
So, we will go into our submodule directory, create a branch based on that second SHA-1 from `git diff` and manually merge.
691+
So, we will go into our submodule directory, create a branch named ``try-merge'' based on that second SHA-1 from `git diff`, and manually merge.
692692

693693
[source,console]
694694
----
@@ -698,7 +698,8 @@ $ git rev-parse HEAD
698698
eb41d764bccf88be77aced643c13a7fa86714135
699699
700700
$ git branch try-merge c771610
701-
(DbConnector) $ git merge try-merge
701+
702+
$ git merge try-merge
702703
Auto-merging src/main.c
703704
CONFLICT (content): Merge conflict in src/main.c
704705
Recorded preimage for 'src/main.c'

0 commit comments

Comments
 (0)