Skip to content

Latest commit

 

History

History

README.md

📘 Git Basics (Your First Real Workflow)


🎯 Goal of This Section

By the end of this section, you will:

  • Create repositories
  • Track changes
  • Make commits confidently
  • Understand Git workflow
  • Read Git history

🧠 What You Already Know

From Mental Models:

  • Git stores snapshots
  • Branches are pointers
  • HEAD is your position
  • Staging area controls commits
  • Merge vs rebase thinking
  • Reflog = safety net

👉 Now we apply it in practice.


🔄 The Core Workflow

Image

Image

Image

Image

Image

Image

Image

Working Directory → Staging Area → Repository

📚 Topics in This Section

Follow in order:

  1. What is Git
  2. Why version control matters
  3. Git vs GitHub
  4. Install Git
  5. First-time setup
  6. git init
  7. git status
  8. git add
  9. git commit
  10. git log
  11. git diff
  12. .gitignore

🧪 Practice Lab

👉 Don’t skip:

practice-lab.md

This is where learning becomes real.


⚠️ Common Beginner Mistakes

  • Skipping staging area
  • Writing bad commit messages
  • Not checking git status
  • Forgetting to commit often

🧠 How to Learn This Section

For each topic:

  1. Read concept
  2. Run commands
  3. Break something
  4. Fix it
  5. Repeat

🧯 Reminder

You are safe because:

👉 You understand reflog 👉 You understand snapshots


➡️ Start Learning

👉 Go to: 01-what-is-git.md