Answers for "change default branch to master"

2

set the default branch to main

git config --global init.defaultBranch main
Posted by: Guest on March-30-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 "change default branch to master"

Browse Popular Code Answers by Language