Created
March 28, 2022 01:20
-
-
Save y16ra/b6363abd8a1b77e9f7175ecd94f58386 to your computer and use it in GitHub Desktop.
Configure default git branch name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global init.defaultBranch main |
How to rename the master branch to main.
git branch -m master main
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The default branch name in Git is master.
The default branch name for new repositories created on GitHub is now main.