git describe
SafeTag-based version strings
git describe --tags
Generates v1.2.0-5-gabc123 style strings — embed in builds to trace any binary to its commit.
Examples
git describe --tags --alwaysFall back to a hash
Syntax
git describe [--tags] [--always]
Before you run it
Read only.
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store