Skip to content

Commit 35356bc

Browse files
authored
Merge pull request #18 from NelleV/tacaswell_rebase_doc
FIX github -> GitHub
2 parents f519169 + fd49028 commit 35356bc

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

doc/devel/gitwash/development_workflow.rst

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ use::
3838
git fetch origin
3939
git checkout -b my-new-feature origin/v1.0.x
4040

41-
Generally, you will want to keep this also on your public github_ fork
42-
of matplotlib_. To do this, you `git push`_ this new branch up to your github_
41+
Generally, you will want to keep this also on your public GitHub_ fork
42+
of matplotlib_. To do this, you `git push`_ this new branch up to your GitHub_
4343
repo. Generally (if you followed the instructions in these pages, and
44-
by default), git will have a link to your github_ repo, called
45-
``origin``. You push up to your own repo on github_ with::
44+
by default), git will have a link to your GitHub_ repo, called
45+
``origin``. You push up to your own repo on GitHub_ with::
4646

4747
git push origin my-new-feature
4848

4949
You will need to use this exact command, rather than simply ``git
5050
push`` every time you want to push changes on your feature branch to
51-
your github_ repo. However, in git >1.7 you can set up a link by
51+
your GitHub_ repo. However, in git >1.7 you can set up a link by
5252
using the ``--set-upstream`` option::
5353

5454
git push --set-upstream origin my-new-feature
@@ -100,7 +100,7 @@ In more detail
100100
faith |emdash| or see `why the -a flag?`_ |emdash| and the helpful use-case
101101
description in the `tangled working copy problem`_. The `git commit`_ manual
102102
page might also be useful.
103-
#. To push the changes up to your forked repo on github_, do a ``git
103+
#. To push the changes up to your forked repo on GitHub_, do a ``git
104104
push`` (see `git push`).
105105

106106
Asking for code review
@@ -155,7 +155,7 @@ When you are ready to ask for the merge of your code:
155155

156156
#. If the branch is to be merged into a maintenance branch on the main
157157
repo, make sure the "base branch" indicates the maintenance branch
158-
and not master. Github can not automatically determine the branch
158+
and not master. GitHub can not automatically determine the branch
159159
to merge into.
160160

161161
Rebasing a Pull Request (PR)
@@ -167,21 +167,21 @@ trivial: for example both the parent branch and your branch add an entry to
167167
the top of `CHANGELOG`. Git can not unambiguously tell what to with both
168168
changes (should one go above the other? if so, which order? should it try to
169169
merge them?) so it declares the branches can not be merged
170-
cleanly. Github can only automatically merge PR without conflicts, so you will
170+
cleanly. GitHub can only automatically merge PR without conflicts, so you will
171171
need to manually 'rebase'. This is the process of updating your branch with
172172
upstream changes, and resolving conflicts.
173173

174174
In git, rebasing is a mild form of re-writing history: it effectively forwards
175175
all your commits to the updated upstream commit. For a much more detailed
176176
explanation (with pictures!) see `this nice write up
177-
<http://git-scm.com/book/en/Git-Branching-Rebasing>`. The numpy team has also
177+
<https://git-scm.com/book/en/Git-Branching-Rebasing>`. The NumPy team has also
178178
`documented how to do this
179179
<http://docs.scipy.org/doc/numpy/dev/gitwash/development_workflow.html#rebasing-on-master>`
180180
In general, re-writing history, particularly published history, is considered
181181
bad practice, but in this case it is very useful.
182182

183-
The following example assumes that the remote of _your_ github
184-
repository is called `github` and the remote of the official
183+
The following example assumes that the remote of _your_ GitHub
184+
repository is called `origin` and the remote of the official
185185
repository is called `matplotlib`.
186186

187187
The first step is to make sure that your local copy of the upstream repository is
@@ -221,9 +221,9 @@ and git will then give a bunch of feed back::
221221
To check out the original branch and stop rebasing, run "git rebase --abort".
222222

223223
A number of commits could be cleanly applied to
224-
the tip of `matplotlib/master`, however, git eventually hits a commit
225-
that had conflicts. In this case in the file
226-
`lib/matplotlib/backends/backend_gtk3.py`. For more verbose information run ::
224+
the tip of `matplotlib/master`. However, git may eventually hit a commit
225+
that had conflicts: in the example above, this happens in the file
226+
`lib/matplotlib/backends/backend_gtk3.py`). For more verbose information run ::
227227

228228
$ git status
229229

@@ -283,21 +283,21 @@ properly.
283283

284284
Your branch is now rebased, however, because of the way git
285285
determines the hash of each commit, it now shares no commits with your
286-
old branch published on github so you can not push to that branch as
286+
old branch published on GitHub so you can not push to that branch as
287287
you would when simply adding commits. In order to publish your newly
288288
rebased (and tested!) branch you need to use the `--force` flag::
289289

290-
$ git push --force github
290+
$ git push --force origin
291291

292-
which will _replace_ all of the commits under your branch on github
292+
which will _replace_ all of the commits under your branch on GitHub
293293
with the new versions of the commit.
294294

295295
Congratulations, you have rebased your branch!
296296

297297
Staying up to date with changes in the central repository
298298
=========================================================
299299

300-
This updates your working copy from the upstream `matplotlib github`_
300+
This updates your working copy from the upstream `matplotlib GitHub`_
301301
repo.
302302

303303
Overview
@@ -308,9 +308,9 @@ Overview
308308
# go to your master branch
309309
git checkout master
310310
# pull changes from github
311-
git fetch upstream
312-
# merge from upstream
313-
git merge --ff-only upstream/master
311+
git fetch matplotlib
312+
# merge from matplotlib
313+
git merge --ff-only matplotlib/master
314314

315315
In detail
316316
---------
@@ -348,7 +348,7 @@ Other integration branches
348348
--------------------------
349349

350350
Some people like to keep separate local branches corresponding to the
351-
maintenance branches on github. At the time of this writing, ``v1.0.x``
351+
maintenance branches on GitHub. At the time of this writing, ``v1.0.x``
352352
is the active maintenance branch. If you have such a local branch,
353353
treat is just as ``master``: don't commit on it, and before starting
354354
new branches off of it, update it from upstream::
@@ -397,15 +397,15 @@ make sure to reset the correct branch::
397397
git reset --hard upstream/master
398398

399399

400-
Deleting a branch on github_
400+
Deleting a branch on GitHub_
401401
============================
402402

403403
::
404404

405405
git checkout master
406406
# delete branch locally
407407
git branch -D my-unwanted-branch
408-
# delete branch on github
408+
# delete branch on GitHub
409409
git push origin :my-unwanted-branch
410410

411411
(Note the colon ``:`` before ``test-branch``. See also:
@@ -416,11 +416,11 @@ Several people sharing a single repository
416416

417417
If you want to work on some stuff with other people, where you are all
418418
committing into the same repository, or even the same branch, then just
419-
share it via github_.
419+
share it via GitHub_.
420420

421421
First fork matplotlib into your account, as from :ref:`forking`.
422422

423-
Then, go to your forked repository github page, say
423+
Then, go to your forked repository GitHub page, say
424424
``http://github.com/your-user-name/matplotlib``
425425

426426
Click on the 'Admin' button, and add anyone else to the repo as a
@@ -430,7 +430,7 @@ collaborator:
430430

431431
Now all those people can do::
432432

433-
git clone git@githhub.com:your-user-name/matplotlib.git
433+
git clone git@github.com:your-user-name/matplotlib.git
434434

435435
Remember that links starting with ``git@`` use the ssh protocol and are
436436
read-write; links starting with ``git://`` are read-only.
@@ -453,7 +453,7 @@ To see a linear list of commits for this branch::
453453

454454
git log
455455

456-
You can also look at the `network graph visualizer`_ for your github_
456+
You can also look at the `network graph visualizer`_ for your GitHub_
457457
repo.
458458

459459
.. include:: links.inc

0 commit comments

Comments
 (0)