👉 The usual sequence looks like this:
Go to your project folder → git init
Stage files → git add .
Commit locally → git commit -m "first commit"
Create a repo on GitHub
Connect your local repo → git remote add origin
Upload to GitHub → git push -u origin main