Answers for "git default branch main"

2

set the default branch to main

git config --global init.defaultBranch main
Posted by: Guest on March-30-2021
3

git create new default branch

git branch -m master main # renames "master" to "main"
git push -u origin main # push new branch
Posted by: Guest on May-13-2021
0

set defualt branch to main git

git config --global init.defaultBranch main
Posted by: Guest on October-05-2021

Code answers related to "git default branch main"

Browse Popular Code Answers by Language