Your first repo, start to finish
Here's the whole loop in one place. Create a folder, make it a repo, save your work, and push it to GitHub:
# 1. Start a new project
mkdir my-first-project
cd my-first-project
git init
# 2. Protect your secrets before anything else
echo ".env" > .gitignore
# 3. Make your first save point
git add .
git commit -m "Initial commit"
# 4. Connect to GitHub and push it up
git remote add origin https://github.com/yourname/my-first-project.git
git push -u origin main
That's it. You now have a project with a safety net and a cloud backup. Every time you make progress, repeat the add → commit → push rhythm.