Linux Terminal Glossary
›
Git - Core
git diff HEAD~1 HEAD
Category:
Git - Core
git diff HEAD~1 HEAD
Copy command
Show diff between last two commits
Shows what changed between the second-to-last commit and the last commit. HEAD~1 means 'one commit before HEAD'.
Looking for more?
Search all 7,657 commands
— works offline, in English or Spanish, and fixes typos.