@@ -79,7 +79,7 @@ linkgit:git-merge[1]:
79
79
80
80
$ git merge branchname
81
81
82
- merges the development in the branch "branchname" into the current
82
+ merges the changes made in the branch "branchname" into the current
83
83
branch. If there are conflicts--for example, if the same file is
84
84
modified in two different ways in the remote branch and the local
85
85
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:
93
93
Conflict markers are left in the problematic files, and after
94
94
you resolve the conflicts manually, you can update the index
95
95
with the contents and run git commit, as you normally would when
96
- creating a new file.
96
+ modifying a file.
97
97
98
98
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
100
100
one to the top of the other branch.
101
101
102
102
### Resolving a merge ###
@@ -145,22 +145,20 @@ Or, if you've already committed the merge that you want to throw away,
145
145
146
146
$ git reset --hard ORIG_HEAD
147
147
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.
152
151
153
152
### Fast-forward merges ###
154
153
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.
159
157
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.
165
163
166
164
[ gitcast: c6-branch-merge ] ("GitCast #6 : Branching and Merging")
0 commit comments