Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

change default branch github

git branch -m master main

git push -u origin main

git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main

# change default branch on GitHub

git push origin --delete master
Source by pythonforundergradengineers.com #
 
PREVIOUS NEXT
Tagged: #change #default #branch #github
ADD COMMENT
Topic
Name
6+1 =