readme 506 B

1234567891011121314151617
  1. You can rename your master branch to main in four steps:
  2. 1. Rename the branch localy.
  3. git branch -m master main
  4. 2. push it to your git host.
  5. git push -u origin main
  6. 3. Change your default branch on your git host.
  7. 4. Delete the master branch through the gui or using this.
  8. git push origin :master
  9. See these links for more info:
  10. https://www.hanselman.com/blog/easily-rename-your-git-default-branch-from-master-to-main
  11. https://stackoverflow.com/questions/17546171/how-to-delete-a-remote-branch-using-git