Skip to content

Commit 26ffe86

Browse files
committed
Update docs to configure 'main' to pull from 'upstream'. Ref python/core-workflow#475.
1 parent 05f6d0c commit 26ffe86

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

getting-started/setup-building.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,19 @@ You will only need to execute these steps once:
8181
$ cd cpython
8282
$ git remote add upstream [email protected]:python/cpython.git
8383

84-
7. Verify that your setup is correct::
84+
7. Configure ``git`` to pull main from the ``upstream`` remote::
85+
86+
$ git config --local branch.main.remote upstream
87+
88+
8. Verify that your setup is correct::
8589

8690
$ git remote -v
8791
origin [email protected]:<your-username>/cpython.git (fetch)
8892
origin [email protected]:<your-username>/cpython.git (push)
8993
upstream [email protected]:python/cpython.git (fetch)
9094
upstream [email protected]:python/cpython.git (push)
95+
$ git config branch.main.remote
96+
upstream
9197

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

0 commit comments

Comments
 (0)