Answer the question
In order to leave comments, you need to log in
How to change the default branch name in Git (master -> main)?
When you create a git repository for a project, the master branch is created. This branch has to be renamed manually each time using the git branch -m master main command.
Is it possible to change the default master branch name?
Note. Without renaming in the github, the master branch is created as a pull request to the main branch.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question