Skip to content

Commit 412afa9

Browse files
authored
Merge branch 'master' into bugfix/issue-696
2 parents 727a642 + 1a7bde6 commit 412afa9

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

book/03-git-branching/sections/rebasing.asc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,13 @@ So what if there was a messy series of merge commits?
228228
That's how it happened, and the repository should preserve that for posterity.
229229

230230
The opposing point of view is that the commit history is the *story of how your project was made.*
231-
You wouldn't publish the first draft of a book, and the manual for how to maintain your software deserves careful editing.
232-
This is the camp that uses tools like `rebase` and `filter-branch` to tell the story in the way that's best for future readers.
231+
You wouldn't publish the first draft of a book, so why show your messy work?
232+
When you're working on a project, you may need a record of all your missteps and dead-end paths, but when it's time to show your work to the world, you may want to tell a more coherent story of how to get from A to B.
233+
People in this camp use tools like rebase and filter-branch to rewrite their commits before they're merged into the mainline branch.
234+
They use tools like `rebase` and `filter-branch`, to tell the story in the way that's best for future readers.
233235

234236
Now, to the question of whether merging or rebasing is better: hopefully you'll see that it's not that simple.
235237
Git is a powerful tool, and allows you to do many things to and with your history, but every team and every project is different.
236238
Now that you know how both of these things work, it's up to you to decide which one is best for your particular situation.
237239

238-
You can get the best of both worlds: rebase local changes before pushing to clean up your work, but never rebase anything that you've pushed somewhere.
240+
You can get the best of both worlds: rebase local changes before pushing to clean up your work, but never rebase anything that you've pushed somewhere.

book/05-distributed-git/sections/contributing.asc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,11 @@ Result: OK
787787

788788
==== Summary
789789

790-
This section has covered a number of common workflows for dealing with several very different types of Git projects you're likely to encounter, and introduced a couple of new tools to help you manage this process.
790+
In this section, we covered multiple workflows, and talked about the differences between working as part of a small team on closed-source projects vs contributing to a big public project.
791+
You know to check for white-space errors before committing, and can write a great commit message.
792+
You learned how to format patches, and e-mail them to a developer mailing list.
793+
Dealing with merges was also covered in the context of the different workflows.
794+
You are now well prepared to collaborate on any project.
795+
791796
Next, you'll see how to work the other side of the coin: maintaining a Git project.
792797
You'll learn how to be a benevolent dictator or integration manager.

0 commit comments

Comments
 (0)