Rename master to main and update remote while setting new upstream
git branch -m master main && git push -u origin mainMake your main branch on Github the default:
Settings > Branches > Default Branch
Delete remote master branch
git push origin --delete master