Skip to content

Commit a1f6628

Browse files
committed
Minor edits to "Basic Branching and Merging" section (08 in source)
1 parent ff37dc0 commit a1f6628

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

text/08_Basic_Branching_and_Merging/0_ Basic_Branching_and_Merging.markdown

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ linkgit:git-merge[1]:
7979

8080
$ git merge branchname
8181

82-
merges the development in the branch "branchname" into the current
82+
merges the changes made in the branch "branchname" into the current
8383
branch. If there are conflicts--for example, if the same file is
8484
modified in two different ways in the remote branch and the local
8585
branch--then you are warned; the output may look something like this:
@@ -93,10 +93,10 @@ branch--then you are warned; the output may look something like this:
9393
Conflict markers are left in the problematic files, and after
9494
you resolve the conflicts manually, you can update the index
9595
with the contents and run git commit, as you normally would when
96-
creating a new file.
96+
modifying a file.
9797

9898
If you examine the resulting commit using gitk, you will see that it
99-
has two parents, one pointing to the top of the current branch, and
99+
has two parents: one pointing to the top of the current branch, and
100100
one to the top of the other branch.
101101

102102
### Resolving a merge ###
@@ -145,22 +145,20 @@ Or, if you've already committed the merge that you want to throw away,
145145

146146
$ git reset --hard ORIG_HEAD
147147

148-
However, this last command can be dangerous in some cases--never
149-
throw away a commit you have already committed if that commit may
150-
itself have been merged into another branch, as doing so may confuse
151-
further merges.
148+
However, this last command can be dangerous in some cases--never throw away a
149+
commit if that commit may itself have been merged into another branch, as
150+
doing so may confuse further merges.
152151

153152
### Fast-forward merges ###
154153

155-
There is one special case not mentioned above, which is treated
156-
differently. Normally, a merge results in a merge commit, with two
157-
parents, one pointing at each of the two lines of development that
158-
were merged.
154+
There is one special case not mentioned above, which is treated differently.
155+
Normally, a merge results in a merge commit with two parents, one for each of
156+
the two lines of development that were merged.
159157

160-
However, if the current branch is a descendant of the other--so every
161-
commit present in the one is already contained in the other--then git
162-
just performs a "fast forward"; the head of the current branch is moved
163-
forward to point at the head of the merged-in branch, without any new
164-
commits being created.
158+
However, if the current branch has not diverged from the other--so every
159+
commit present in the current branch is already contained in the other--then
160+
git just performs a "fast forward"; the head of the current branch is moved
161+
forward to point at the head of the merged-in branch, without any new commits
162+
being created.
165163

166164
[gitcast:c6-branch-merge]("GitCast #6: Branching and Merging")

0 commit comments

Comments
 (0)