File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ The CPython repo is hosted on GitHub. To get a copy of the source code you shoul
60
60
:ref: `fork the Python repository on GitHub <fork-cpython >`, :ref: `create a local
61
61
clone of your personal fork, and configure the remotes <clone-your-fork>`.
62
62
63
- You will only need to execute these steps once:
63
+ You will only need to execute these steps once per machine :
64
64
65
65
1. Go to https://github.com/python/cpython.
66
66
@@ -85,13 +85,18 @@ You will only need to execute these steps once:
85
85
86
86
$ git config --local branch.main.remote upstream
87
87
88
- 8. Verify that your setup is correct::
88
+ 8. Since one should never attempt to push to ``upstream ``, configure
89
+ ``git `` to push always to ``origin ``::
90
+
91
+ $ git remote set-url --push upstream git@github.com:<your-username>/cpython.git
92
+
93
+ 9. Verify that your setup is correct::
89
94
90
95
$ git remote -v
91
96
origin git@github.com:<your-username>/cpython.git (fetch)
92
97
origin git@github.com:<your-username>/cpython.git (push)
93
98
upstream git@github.com:python/cpython.git (fetch)
94
- upstream git@github.com:python /cpython.git (push)
99
+ upstream git@github.com:<your-username> /cpython.git (push)
95
100
$ git config branch.main.remote
96
101
upstream
97
102
You can’t perform that action at this time.
0 commit comments