git show

Show detailed information about a specific commit, including metadata and file changes

Syntax

git show [<options>] [<object>...]

Parameters

ParametersDescriptionExamplesLevel
--stat Common
--name-only Common
--format=<format> Common
--no-patch diff, Common
-q , diff Common

Examples

and diff

git show abc1234

New

git show HEAD

git show v1.0.0

git show HEAD:src/app.js

5

git show --stat HEAD~5..HEAD

git show --format="%H %an %s" --no-patch HEAD
abc1234def feat:

Tips

Related Commands