Init from local project

Create a empty project from GitHub and copy the remote url

git init -b main
git add .
git commit -m "First commit"
git branch -M main
git remote add origin <remote url>