Skip to content

Move default branch from "master" -> "main" #244

Closed

Description

@jsignell

@jrbourbeau and I are in the process of moving the default branch for this repo from master to main.

What you'll see

Once the name on github is changed (the first box above is Xed, or this issue closed), when you try to git pull you'll get

Your configuration specifies to merge with the ref 'refs/heads/master'
from the remote, but no such ref was fetched.

What you need to do

First: head to your fork and rename the default branch there
Then:

git branch -m master main
git fetch origin
git branch -u origin/main main

Activity

  1. jrbourbeau commented on Jan 27, 2021

    @jrbourbeau
    Member

    @jacobtomlinson we haven't updated the name of the default branch yet. Just wanted to check first to make sure there aren't any blockers on making the master -> main change here

  2. jacobtomlinson commented on Jan 27, 2021

    @jacobtomlinson
    Member

    I think things should be all good to switch here. Thanks for taking this on.

  3. jacobtomlinson commented on Jan 27, 2021

    @jacobtomlinson
    Member

    I'm about to release here, but that shouldn't be a problem as the release CI is set up to release all tags, regardless of branch.

  4. jrbourbeau commented on Jan 27, 2021

    @jrbourbeau
    Member

    Awesome thanks!

  5. jacobtomlinson commented on Jan 27, 2021

    @jacobtomlinson
    Member

    The release is complete, just FYI.

  6. jacobtomlinson commented on Jan 27, 2021

    @jacobtomlinson
    Member

    Small note you need to rename the branch in your fork before those local commands will work.

  7. jacobtomlinson commented on Mar 10, 2021

    @jacobtomlinson
    Member

    Another note that I just spotted. Read The Docs was still building latest from the master branch and builds were failing. It was configured to build from the default branch, but I think it had cached the value master somewhere. I manually pointed this to main in the RtD control panel and things seem ok again now.

    cc @jrbourbeau @jsignell as it may be worth checking other projects too.

  8. jrbourbeau commented on Mar 10, 2021

    @jrbourbeau
    Member

    Will do, thanks for the heads up @jacobtomlinson

  9. jacobtomlinson commented on Mar 10, 2021

    @jacobtomlinson
    Member

    The same issue also came up on dask-kubernetes.

  10. jsignell commented on Mar 10, 2021

    @jsignell
    MemberAuthor

    I imagine this will come up in all the projects. Would it help for me to go through all the repos and open a ticket about this? Or is it sufficient for someone to just get in and change them all?

  11. jacobtomlinson commented on Mar 10, 2021

    @jacobtomlinson
    Member

    It might be worth opening issues as permissions in RtD are a little more ad-hoc than GitHub. There are no orgs so folks have to be added to each project manually.

    Perhaps @jrbourbeau or @mrocklin have been added to enough projects to be able to go through and fix everything? But I do not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions