Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

updating local git clone after default branch rename

git branch -m develop main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
Source by github.com #
 
PREVIOUS NEXT
Tagged: #updating #local #git #clone #default #branch #rename
ADD COMMENT
Topic
Name
4+7 =