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