Git Rename Master to Main
Author: thomas.godart
Words: 30
On your local computer:
- cd /your/project/location/
- git branch -m master main
- git push -u origin main
On the distant repository:
- cd /the/git/repository/location/
- git symbolic-ref HEAD refs/heads/main
On your local computer:
- git push origin --delete master