Skip to content

Exercise 01: Git Mental Model

Goal

Practice identifying the working tree, staging area, and repository history.

Tasks

  1. Create a folder named git-practice.
  2. Run git init.
  3. Create README.md with a short course description.
  4. Run git status.
  5. Stage and commit the file.
  6. Run git log --oneline.

Reflection

  • What changed after git add?
  • What changed after git commit?
  • Why should you check git status often?