git show <commit>
Displays content changes of a specific commit
This command provides comprehensive information about a particular commit, including the commit message, author, date, and diff information presenting the changes made in the commit.
Variations include appending --stat
to show how many lines have been inserted or deleted, while --name-only
shows only names of changed files, or --pretty=oneline
for a simplified one line output.
Specific example:
- git show 1c12945