Every commit records who made it, when, and why (its message). git log lists them, newest first:
bash
git logtext
commit 973d8364de1621e09c2af2eb22bd5e2cccdffe80 (HEAD -> main) ← the hash: its unique name
Author: Sam <[email protected]>
Date: Tue Mar 11 13:56:00 2025 +0000
Add opening hours ← the message
…git log --oneline shows one line per commit: a short hash and the message.
A good message says what the commit does, starts with a verb, and fits in 50 characters: Add the FAQ, not stuff.
Objectives
- Find who added the price list.
- Find the message of the commit that came right after
Add the inventory. - Commit
faq.mdwith a short message that names it.