On the command line, in the directory for your repository, run these commands to make sure you have all of the changes pulled down to master, move master to main, and push the new main branch:
git checkout master
git pull
git branch -m master main
git push -u origin main