LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

git-show

Display Git objects such as commits, tags, and blobs

TLDR

Show last commit
$ git show
copy
Show specific commit
$ git show [commit-hash]
copy
Show tag
$ git show [v1.0.0]
copy
Show file at commit
$ git show [commit]:[file.txt]
copy
Show only stats
$ git show --stat
copy

SYNOPSIS

git show [options] object

DESCRIPTION

git show displays various types of Git objects. For commits, it shows the commit message and diff. For tags, it shows the tag annotation. For trees and blobs, it shows the contents directly.The command combines log and diff functionality into a convenient single-object inspector, making it the go-to tool for examining any Git object.

PARAMETERS

OBJECT

Commit, tag, or tree to show.
--stat
Show diffstat only.
--name-only
Show changed file names.
--name-status
Show names and status.
--format FORMAT
Output format.
-p, --patch
Show diff (default for commits).
--help
Display help information.

INSTALL

sudo apt install git
copy
sudo dnf install git
copy
sudo pacman -S git
copy
sudo apk add git
copy
sudo zypper install git
copy
brew install git
copy
nix profile install nixpkgs#git
copy

CAVEATS

Output varies by object type. Large diffs may need paging. Binary files show as binary.

HISTORY

git show is a core Git command for displaying objects, providing a unified interface to inspect various git object types.

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid