Settings

Theme

Has GitHub reverted its default branch nomenclature back to “master”?

1 points by eclat 4 years ago · 1 comment · 1 min read


I just realised when creating a new repo that the default prompt mentions master instead of main. Good on them, I'm glad common sense prevailed on this non-issue. Is this the case everywhere?

Current new repo text:

..or create a new repository on the command line

echo "# repo" >> README.md

git init

git add README.md

git commit -m "first commit"

git branch -M master

git remote add origin https://github.com/your/repo.git

git push -u origin master

bloak 4 years ago

You can set your own default for new repositories: (circular picture in top right corner) -> Settings -> (about half way down on the left) Repositories -> (top of page) Repository default branch

I don't know whether changing that changes the "new repo text" but since the text for "Repository default branch" says "You might want to change the default name due to different workflows, or because your integrations still require “master” as the default branch name." I would guess the default default is "main", so either you have set your default to "master", or the new repo text is out-of-date, I would guess.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection