Subcommands (4)
Options (1)
-s, --no-patchbooleanShow a commit's message in a single line, suppressing the diff output
Example:
git show --oneline {{[-s|--no-patch]}} {{commit}}Examples (8)
Show information about the latest commit (hash, message, changes, and other metadata)
Show information about a specific commit, tag, or branch (such as `HEAD` for the latest commit)
git show commit|tag|branchShow only the list of added, renamed, or deleted files
git show --summary commitShow information about the 3rd commit from the `HEAD` of a branch
git show branch~3Show a commit's message in a single line, suppressing the diff output
git show --oneline [-s|--no-patch] commitShow only statistics (added/removed characters) about the changed files
git show --stat commitShow a simplified list of all files changed in a commit (modified, added, and deleted)
git show --name-only commitShow the contents of a file as it was at a given revision (e.g. branch, tag, or commit)
git show revision:path/to/filemade by @shridhargupta | data from tldr-pages