Answers for "how to change the default branch to master in git"

2

set the default branch to main

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

change git default branch

git config --global init.defaultBranch <defaultBranchName>
Posted by: Guest on April-15-2021
0

Change default branch on git

git branch -m deploy prod
git fetch origin
git branch -u origin/prod prod
git remote set-head origin -a
Posted by: Guest on April-26-2021

Code answers related to "how to change the default branch to master in git"

Browse Popular Code Answers by Language