$ git branch -m master 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
git branch -m master main
// must already have added somethign to HEAD
$ git branch -m master main