Reading the Log
git log lists commits. --oneline gives one line each and --graph draws branches.
Example
echo one > a.txt && git add a.txt && git commit -qm 'first'
echo two >> a.txt && git commit -qam 'second'
git log --format=%s
git log --oneline | wc -lResult
second first 2
Exercise
Compact log.
git log Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.