Create new github repo
Create new project folder as normal
Proceed add current project to the newly created repo
git init
git add .
git commit -m "Add existing project files to Git"
git remote add origin https://github.com/cameronmcnz/example-website.git
git push -u -f origin main
This post is imported from: https://thebrownbox.hashnode.dev/push-existing-project-to-new-github-repo