sreenivas./courses
Git & GitHub for Beginners — all lessons
↻edit→add→commit

MODULE 01 · 6 MIN READ

The loop — 90% of Git

“edit → add → commit. repeat.”

That's the whole job. Open notes.txt in Notepad or VS Code — no terminal editors in this course, I promise — change something, save it, then:

git bash

$ git diff ← what changed since the last photo?

- old line

+ new line

$ git add .

$ git commit -m "Update notes"

[main b2c3d4e] Update notes

$ git log --oneline

b2c3d4e Update notes

a1b2c3d Add course notes

git diff shows exactly what changed since the last snapshot — minus lines are old, plus lines are new. If it takes over your screen, press q to quit.

When should you commit?

Commit whenever losing the work would make you sad. Small and often beats big and rare. This loop is what professional developers do all day, every day — you now know 90% of daily Git.

practice terminal — you cannot break it

a tiny simulated laptop. six commands, zero consequences.

$ 

// do the full loop: edit notes.txt → git diff → git add . → git commit