Skip to content

Commit

Permalink
Update docs to configure 'main' to pull from 'upstream'. Ref python/c…
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Aug 28, 2022
1 parent 0aa8522 commit f48e3b6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion getting-started/setup-building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,19 @@ You will only need to execute these steps once:
$ cd cpython
$ git remote add upstream [email protected]:python/cpython.git

7. Verify that your setup is correct::
7. Configure ``git`` to pull main from the ``upstream`` remote::

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

8. Verify that your setup is correct::

$ git remote -v
origin [email protected]:<your-username>/cpython.git (fetch)
origin [email protected]:<your-username>/cpython.git (push)
upstream [email protected]:python/cpython.git (fetch)
upstream [email protected]:python/cpython.git (push)
$ git config branch.main.remote
upstream

If you did everything correctly, you should now have a copy of the code
in the ``cpython`` directory and two remotes that refer to your own GitHub fork
Expand Down

0 comments on commit f48e3b6

Please sign in to comment.