Skip to content

Commit beae7db

Browse files
authored
Merge pull request #74 from sergiocabral/translate-basic-branching-file
Atualização dos arquivos originais com o do livro em inglês (rebase master)
2 parents 9bc3c2d + dd034ba commit beae7db

227 files changed

Lines changed: 10566 additions & 2 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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:

images/2fa-1.png

147 Bytes
Loading

images/advance-master.png

8.91 KB
Loading

images/advance-master.svg

Lines changed: 61 additions & 0 deletions
Loading

images/advance-testing.png

43.7 KB
Loading

images/advance-testing.svg

Lines changed: 52 additions & 0 deletions
Loading

images/areas.png

61.8 KB
Loading

images/areas.svg

Lines changed: 53 additions & 0 deletions
Loading

images/basic-branching-1.png

13.6 KB
Loading

images/basic-branching-1.svg

Lines changed: 36 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)