Services Work Learn About Contact
0/8
Lesson 4 of 8

git log & git diff

git log shows the history of commits. git diff shows the exact changes between files. These commands help you understand what changed and when.

GIT
# View commit history
git log

# View compact history
git log --oneline

# See what changed in a specific file
git diff index.html

# See what is staged but not committed
git diff --staged
🧠

Quick Quiz

Answer correctly to unlock the next lesson.

Support the mission

This learning platform is 100% free: no ads, no tracking, no paywalls. If it helped you learn something useful, you can support future lessons or donate to Doctors Without Borders, which provides emergency medical care in crisis zones worldwide.

🎉

You completed Git & GitHub!

You finished all 8 lessons and quizzes. You now know the basics of Git & GitHub.