1. Create new github repo

  2. Create new project folder as normal

  3. 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