Answers for "git rename master branch to main"

4

git rename master to main

$ git branch -m master main
Posted by: Guest on February-21-2021
2

rename branch to main

$ git branch -m master main

or create a new one

$ git checkout -b main
Posted by: Guest on October-03-2020
2

rename branch to main

$ git push -u origin main
Posted by: Guest on October-03-2020
0

git rename master branch to main

git branch -m master main
Posted by: Guest on August-07-2021

Code answers related to "git rename master branch to main"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language