Skip to content

Exercise 03: Staging and Commits

Goal

Practice staging only the files you intend to commit.

Tasks

  1. Create notes.md, commands.md, and .env.
  2. Add .env to .gitignore.
  3. Add safe content to the two Markdown files.
  4. Run git status and git diff.
  5. Stage only the Markdown files.
  6. Commit with a clear message.

Reflection

  • Did .env stay untracked?
  • What would you check before pushing this repo publicly?