Answers for "switch default branch"

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
1

git switch branch

wonder.woman@highfive project %  git checkout branch_name 
#this let you keep edited files
wonder.woman@highfive project %  git switch branch_name
Posted by: Guest on March-20-2020

Browse Popular Code Answers by Language