$ git branch -m master main
$ git branch -m master main or create a new one $ git checkout -b main
git branch -m master main
$ git push -u origin main
$ git push origin --delete master