CmdID

CmdID / Commands

git-name-rev

Describe a commit using existing ref names. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Show the name for HEAD

git name-rev HEADIdentify

Show only the name

git name-rev --name-only HEADIdentify

Enumerate all matching ref names

git name-rev --allIdentify

Use only tags to name the commit

git name-rev --tags HEADIdentify

Exit with a non-zero status code instead of printing undefined for unknown commits

git name-rev --no-undefined commit-ishIdentify

Show names for multiple commits

git name-rev HEAD~1 HEAD~2 mainIdentify

Restrict names to branch refs

git name-rev --refs refs/heads/ commit-ishIdentify

Read commit IDs from stdin

echo "commit-ish" | git name-rev --annotate-stdinIdentify