[Python-Dev] My fork lacks a 3.7 branch - can I create it somehow?

Chris Angelico rosuav at gmail.com
Mon May 21 20:19:57 EDT 2018


On Tue, May 22, 2018 at 10:07 AM, Skip Montanaro
<skip.montanaro at gmail.com> wrote:
> My GitHub fork of the cpython repo was made awhile ago, before a 3.7 branch
> was created. I have no remotes/origin/3.7. Is there some way to create it
> from remotes/upstream/3.7? I asked on GitHub's help forums. The only
> recommendation was to to delete my fork and recreate it. That seemed kind
> of drastic, and I will do it if that's really the only way, but this seems
> like functionality Git and/or GitHub probably supports.
>

Create it from upstream? Yep! Try this:

git checkout -b 3.7 upstream/3.7
git push -u origin 3.7

That'll probably have to chug-chug-chug to push all that content up to
GitHub; AFAIK they don't have any optimization for "this commit
already exists in another fork of this repository", so you'll have to
upload everything as if it's completely new. But other than that, it
should be quick and easy.

ChrisA


More information about the Python-Dev mailing list