diff --git a/getting-started/git-boot-camp.rst b/getting-started/git-boot-camp.rst index f5854da56..c2ca538df 100644 --- a/getting-started/git-boot-camp.rst +++ b/getting-started/git-boot-camp.rst @@ -61,6 +61,9 @@ You can also use SSH-based or HTTPS-based URLs. Configure the Remotes --------------------- +.. These steps are duplicated in setup-building in step 6 and 7. + Please update these there as well. + Configure ``git`` to pull ``main`` from the ``upstream`` remote:: git config --local branch.main.remote upstream diff --git a/getting-started/setup-building.rst b/getting-started/setup-building.rst index 8d09ea988..646495601 100644 --- a/getting-started/setup-building.rst +++ b/getting-started/setup-building.rst @@ -76,21 +76,18 @@ You will only need to execute these steps once per machine: (You can use both SSH-based or HTTPS-based URLs.) -6. Configure an ``upstream`` remote:: +.. Step 6 and 7 are are duplicated in bootcamp as well. + Please update these steps in both places. + +6. Add an ``upstream`` remote, then configure ``git`` + to pull ``main`` from ``upstream`` and always push to ``origin``:: $ cd cpython $ git remote add upstream https://github.com/python/cpython - -7. Configure ``git`` to pull ``main`` from the ``upstream`` remote:: - $ git config --local branch.main.remote upstream - -8. Since one should never attempt to push to ``upstream``, configure - ``git`` to push always to ``origin``:: - $ git remote set-url --push upstream git@github.com:/cpython.git -9. Verify that your setup is correct:: +7. Verify that your setup is correct:: $ git remote -v origin git@github.com:/cpython.git (fetch) @@ -100,6 +97,9 @@ You will only need to execute these steps once per machine: $ git config branch.main.remote upstream +For more information about these commands see +:ref:`Git Bootcamp and Cheat Sheat `. + 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 (``origin``) and the official CPython repository (``upstream``).