Skip to content

Commit 71f3b76

Browse files
Update steps for 'Getting the source code' and link 'Git Bootcamp' (#986)
* Update steps for 'Getting the source code' and link 'Git Bootcamp' * Removed .DS_Store * Removed .github/.DS_Store * Added new line in .gitignore * Make long lines shorter Co-authored-by: Ezio Melotti <[email protected]>
1 parent 5c163c6 commit 71f3b76

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

getting-started/git-boot-camp.rst

+3
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ You can also use SSH-based or HTTPS-based URLs.
6161
Configure the Remotes
6262
---------------------
6363

64+
.. These steps are duplicated in setup-building in step 6 and 7.
65+
Please update these there as well.
66+
6467
Configure ``git`` to pull ``main`` from the ``upstream`` remote::
6568

6669
git config --local branch.main.remote upstream

getting-started/setup-building.rst

+9-9
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,18 @@ You will only need to execute these steps once per machine:
7676

7777
(You can use both SSH-based or HTTPS-based URLs.)
7878

79-
6. Configure an ``upstream`` remote::
79+
.. Step 6 and 7 are are duplicated in bootcamp as well.
80+
Please update these steps in both places.
81+
82+
6. Add an ``upstream`` remote, then configure ``git``
83+
to pull ``main`` from ``upstream`` and always push to ``origin``::
8084

8185
$ cd cpython
8286
$ git remote add upstream https://github.com/python/cpython
83-
84-
7. Configure ``git`` to pull ``main`` from the ``upstream`` remote::
85-
8687
$ git config --local branch.main.remote upstream
87-
88-
8. Since one should never attempt to push to ``upstream``, configure
89-
``git`` to push always to ``origin``::
90-
9188
$ git remote set-url --push upstream [email protected]:<your-username>/cpython.git
9289

93-
9. Verify that your setup is correct::
90+
7. Verify that your setup is correct::
9491

9592
$ git remote -v
9693
origin [email protected]:<your-username>/cpython.git (fetch)
@@ -100,6 +97,9 @@ You will only need to execute these steps once per machine:
10097
$ git config branch.main.remote
10198
upstream
10299

100+
For more information about these commands see
101+
:ref:`Git Bootcamp and Cheat Sheat <git-boot-camp>`.
102+
103103
If you did everything correctly, you should now have a copy of the code
104104
in the ``cpython`` directory and two remotes that refer to your own GitHub fork
105105
(``origin``) and the official CPython repository (``upstream``).

0 commit comments

Comments
 (0)