Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to switch from master to main

Steps
Step 1 – Move the master branch to 'main'
Step 2 – Push 'main' to remote repo.
Step 3 – Point HEAD to 'main' branch.
Step 4 – Change default branch to 'main' on GitHub site.
Step 5 – Delete 'master' branch on the remote repo.
Source by www.r-bloggers.com #
 
PREVIOUS NEXT
Tagged: #switch #master #main
ADD COMMENT
Topic
Name
3+2 =