Tsallaka zuwa abun ciki
Justice Tech School

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 -l

Result

second
first
2

Exercise

Compact log.

git log 

Quiz Test

Which order does log show?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.