Create an empty repository on github.com, then connect your local one and push. The GitHub CLI (gh) can do it in one step.
git remote add origin https://github.com/you/my-site.git git push -u origin main # or with the GitHub CLI: gh repo create my-site --private --source . --push