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?<p>Current new repo text:<p>..or create a new repository on the command line<p>echo "# repo" >> README.md<p>git init<p>git add README.md<p>git commit -m "first commit"<p>git branch -M master<p>git remote add origin https://github.com/your/repo.git<p>git push -u origin master
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<p>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.