Skip to content

Commit dd034ba

Browse files
carlosschultssergiocabral
authored andcommitted
Atualizar arquivos de acordo com o livro original
Antes de iniciar atualizei o arquivo com o do livro original, pois ele se encontrava desatualizado.
1 parent 15a7ad7 commit dd034ba

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Fast-forward
106106

107107
You'll notice the phrase "`fast-forward`" in that merge.
108108
Because the commit `C4` pointed to by the branch `hotfix` you merged in was directly ahead of the commit `C2` you're on, Git simply moves the pointer forward.
109-
To phrase that another way, when you try to merge one commit with a commit that can be reached by following the first commit's history, Git simplifies things by moving the pointer forward because there is no divergent work to merge together -- this is called a "`fast-forward.`"
109+
To phrase that another way, when you try to merge one commit with a commit that can be reached by following the first commit's history, Git simplifies things by moving the pointer forward because there is no divergent work to merge together -- this is called a ``fast-forward.''
110110

111111
Your change is now in the snapshot of the commit pointed to by the `master` branch, and you can deploy the fix.
112112

@@ -171,7 +171,10 @@ Instead of just moving the branch pointer forward, Git creates a new snapshot th
171171
This is referred to as a merge commit, and is special in that it has more than one parent.
172172

173173
.A merge commit
174-
image::images/basic-merging-2.png[A merge commit]
174+
image::images/basic-merging-2.png[A merge commit.]
175+
176+
It's worth pointing out that Git determines the best common ancestor to use for its merge base; this is different than older tools like CVS or Subversion (before version 1.5), where the developer doing the merge had to figure out the best merge base for themselves.
177+
This makes merging a heck of a lot easier in Git than in these other systems.
175178

176179
Now that your work is merged in, you have no further need for the `iss53` branch.
177180
You can close the issue in your issue-tracking system, and delete the branch:

0 commit comments

Comments
 (0)