From f48e3b69cc56723d3d5cedf743971364fd0b2b88 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 28 Aug 2022 16:24:25 -0400 Subject: [PATCH] Update docs to configure 'main' to pull from 'upstream'. Ref python/core-workflow#475. --- getting-started/setup-building.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/getting-started/setup-building.rst b/getting-started/setup-building.rst index c59c1e544a..3cf2efef58 100644 --- a/getting-started/setup-building.rst +++ b/getting-started/setup-building.rst @@ -81,13 +81,19 @@ You will only need to execute these steps once: $ cd cpython $ git remote add upstream git@github.com: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 git@github.com:/cpython.git (fetch) origin git@github.com:/cpython.git (push) upstream git@github.com:python/cpython.git (fetch) upstream git@github.com: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