Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

rename master to main

# Renaming the Local master Branch to main
git branch -m master main

# Renaming the Remote master Branch as Well
git push -u origin main
# !! Set default branch to main
git push origin --delete master
Source by www.git-tower.com #
 
PREVIOUS NEXT
Tagged: #rename #master #main
ADD COMMENT
Topic
Name
4+9 =