codex-lv2-may-2025

Level Navigation: 1 2 3 Current Level: 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32


đź§Ş Level 4: Git Setup

What You’ll Do

Initialize version control and push your project to GitHub.

Instructions

âś… Check

  1. Open your terminal/command prompt in your project folder
  2. Run git status - you should see “On branch main” and “nothing to commit, working tree clean”
  3. Run git log --oneline - you should see your commit message like “chore: initial project setup”
  4. IMPORTANT: Check that secret-variables.js is NOT on GitHub:
    • Go to your GitHub repository in a web browser
    • Look through the files - you should NOT see secret-variables.js listed
    • If you see it, check your .gitignore file includes secret-variables.js
  5. If you see any errors, make sure you’re in the correct folder and try the git commands again

🔍 Exploration: Commit Message Prefixes

You might be wondering why we use prefixes like chore: or feature: at the start of commit messages. These are part of a convention called Conventional Commits that helps organize and categorize your changes:

Using these prefixes makes it easier to:

In this level, we use chore: because we’re doing initial project setup - creating the foundation without adding new features yet.


Next: Level 5 - Overall Project Check



Level Navigation: 1 2 3 Current Level: 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32