Skip to content

Use 'main' instead of 'master' as the default branch #132

Description

@gusshawstewart

Would it be possible to change the default branch name to main from master? There is a movement towards this revised naming of the default branch within the community, and I think it would be great to keep this fantastic tool up to date. :)

Activity

  1. mbs-c commented on Oct 19, 2022

    @mbs-c

    In case anyone else needs a temporary workaround for a demo: Execute the following commands one by one (and ignore that they're different from what you would do in an actual git repository):

    git checkout -b main
    git branch -d master
    

    Plus, if you have a remote:

    git branch -m origin/master origin/main
    git branch -d origin/master
    mode remote
    git checkout -b main
    git branch -d master
    mode local
    

    Now all that's left to do is hide our hacky attempt to fix the original state. Fortunately, the command list is easy to find in the dev tools:

    image

  2. jmegner commented on Oct 19, 2022

    @jmegner

    Issue is fixed in my fork and you can use it here.

  3. rajbos commented on Jan 17, 2023

    @rajbos

    Tagging @kuychaco , @gusshawstewart , can we get this fixed please? This feels really antiquated, now that the default is Main on most SCM systems.

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