You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* changed "cherry pick" to "cherry-pick" for consistency
* monospaced a few git commands
* monospaced a few branch names
* added "git request-pull" command to a code example
* added a word that would probably improve a sentence
* changed a git output to be consistent with that shown git
* changed a sentence to be more readable
Copy file name to clipboardExpand all lines: book/05-distributed-git/sections/maintaining.asc
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -197,7 +197,7 @@ $ git fetch jessica
197
197
$ git checkout -b rubyclient jessica/ruby-client
198
198
----
199
199
200
-
If she emails you again later with another branch containing another great feature, you can fetch and check out because you already have the remote setup.
200
+
If she emails you again later with another branch containing another great feature, you could directly `fetch` and `checkout` because you already have the remote setup.
201
201
202
202
This is most useful if you're working with a person consistently.
203
203
If someone only has a single patch to contribute once in a while, then accepting it over email may be less time consuming than requiring everyone to run their own server and having to continually add and remove remotes to get a few patches.
@@ -215,7 +215,7 @@ This does a one-time pull and doesn't save the URL as a remote reference:
215
215
$ git pull https://github.com/onetimeguy/project
216
216
From https://github.com/onetimeguy/project
217
217
* branch HEAD -> FETCH_HEAD
218
-
Merge made by recursive.
218
+
Merge made by the 'recursive' strategy.
219
219
----
220
220
221
221
[[_what_is_introduced]]
@@ -297,7 +297,7 @@ You have a number of choices, so we'll cover a few of them.
297
297
===== Merging Workflows
298
298
299
299
(((workflows, merging)))
300
-
One simple workflow merges your work into your `master` branch.
300
+
One simple workflow is to merge the work into your `master` branch.
301
301
In this scenario, you have a `master` branch that contains basically stable code.
302
302
When you have work in a topic branch that you've done or that someone has contributed and you've verified, you merge it into your master branch, delete the topic branch, and then continue the process.
303
303
If we have a repository with work in two branches named `ruby_client` and `php_client` that looks like <<merwf_a>> and merge `ruby_client` first and then `php_client` next, then your history will end up looking like <<merwf_b>>.
@@ -329,9 +329,9 @@ image::images/merging-workflows-4.png[After a topic branch merge.]
329
329
.After a project release.
330
330
image::images/merging-workflows-5.png[After a topic branch release.]
331
331
332
-
This way, when people clone your project's repository, they can either check out master to build the latest stable version and keep up to date on that easily, or they can check out develop, which is the more cutting-edge stuff.
333
-
You can also continue this concept, having an integrate branch where all the work is merged together.
334
-
Then, when the codebase on that branch is stable and passes tests, you merge it into a develop branch; and when that has proven itself stable for a while, you fast-forward your master branch.
332
+
This way, when people clone your project's repository, they can either check out `master` to build the latest stable version and keep up to date on that easily, or they can check out `develop`, which is the more cutting-edge stuff.
333
+
You can also extend this concept by having an `integrate` branch where all the work is merged together.
334
+
Then, when the codebase on that branch is stable and passes tests, you merge it into a `develop` branch; and when that has proven itself stable for a while, you fast-forward your `master` branch.
335
335
336
336
===== Large-Merging Workflows
337
337
@@ -357,7 +357,7 @@ The Git project also has a `maint` branch that is forked off from the last relea
357
357
Thus, when you clone the Git repository, you have four branches that you can check out to evaluate the project in different stages of development, depending on how cutting edge you want to be or how you want to contribute; and the maintainer has a structured workflow to help them vet new contributions.
358
358
359
359
[[_rebase_cherry_pick]]
360
-
===== Rebasing and CherryPicking Workflows
360
+
===== Rebasing and Cherry-Picking Workflows
361
361
362
362
(((workflows, rebasing and cherry-picking)))
363
363
Other maintainers prefer to rebase or cherry-pick contributed work on top of their master branch, rather than merging it in, to keep a mostly linear history.
0 commit comments