On 5/3/2021 9:27 PM, Terry Reedy wrote:
On 5/3/2021 7:45 PM, Tim Peters wrote:
I'm guessing it's time to fiddle local CPython clones to account for
master->main renaming now?
Blob 2 ("upstream"):
"""
The CPython repository's default branch was renamed from ``master`` to
``main``
after the Python 3.10b1 release. If you had cloned the repository
before this
change, you can rename your local branch as follows::
git branch -m master main
git fetch upstream
git branch -u upstream/main main
"""
From my dim understanding, "upstream" makes more sense, but I don't
know.
For 'pull from upsteam, push to origin' workflow,
https://docs.github.com/en/github/administering-a-repository/renaming-a-branch
says the 2nd, +
git remote set-head origin -a
+ optionally, 'to remove tracking references to the old branch name'
git remote prone origin
When I did this, there was a '[pruned]' line for every branch ever on
the fork (about 200 for me), including the bots temporary backport
branches.
I am now preparing a small PR and will test if creation works as usual.
It does.
--
Terry Jan Reedy
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at
https://mail.python.org/archives/list/python-dev@python.org/message/HTIREIDBUIFYP5YDMARDBGTBL3MSMYEA/
Code of Conduct: http://python.org/psf/codeofconduct/