sreenivas./courses
Git & GitHub for Beginners — all lessons

$ git commit -m "Add notes"

[main a1b2c3d]

MODULE 01 · 6 MIN READ

git commit — click the shutter

git bash

$ git commit -m "Add course notes"

[main a1b2c3d] Add course notes

$ git log

commit a1b2c3d…

Add course notes

The -m is your message — always use quotes. git log is your project's diary: every snapshot, newest first.

Good messages answer why

✗ BAD

  • "stuff"
  • "asdf"
  • "final fix 3"

✓ GOOD

  • "Add login page"
  • "Fix typo in pricing table"

That weird code

a1b2c3d is the commit's ID — its address in time. Every snapshot gets one. We'll use an ID to time-travel in two lessons.

practice terminal — you cannot break it

a tiny simulated laptop. six commands, zero consequences.

$ 

// take a snapshot: git commit -m "your message"