Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gusshawstewart opened this issue Aug 17, 2021 · 3 comments · May be fixed by #137
Open

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

gusshawstewart opened this issue Aug 17, 2021 · 3 comments · May be fixed by #137

Comments

@gusshawstewart
Copy link

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. :)

@DCtheTall DCtheTall linked a pull request Feb 28, 2022 that will close this issue
@mbs-c
Copy link

mbs-c commented Oct 19, 2022

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

@jmegner
Copy link

jmegner commented Oct 19, 2022

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

@rajbos
Copy link

rajbos commented Jan 17, 2023

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
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants