Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Git change branch from branch to main

git checkout master        # to be sure you are on master branch
git push origin HEAD:main  # and then push the current branch (as master) to main
 
PREVIOUS NEXT
Tagged: #Git #change #branch #branch #main
ADD COMMENT
Topic
Name
4+4 =