-
-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docs to configure 'main' to pull from 'upstream'. Ref python/c…
- Loading branch information
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|