Examples (5)
Create a unique name for the current commit (the name contains the most recent annotated tag, the number of additional commits, and the abbreviated commit hash)
Create a name with 4 digits for the abbreviated commit hash
git describe --abbrev=4Generate a name with the tag reference path
git describe --allDescribe a Git tag
git describe v1.0.0Create a name for the last commit of a given branch
git describe branch_namemade by @shridhargupta | data from tldr-pages