git show HEAD

Category: Git - Core

git show HEAD

Show the latest commit in detail

Prints the most recent commit with its metadata, message, and full patch. It is the natural entry point when you want to see what just happened. Add --stat for a summary or pass a branch name like git show origin/main.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.