In brief
git describe can identify a commit through a reachable tag, a history distance and an abbreviated identifier. Ordinary default matching uses annotated tags.
Useful to know
git describe can identify a commit through a reachable tag, a history distance and an abbreviated identifier. Ordinary default matching uses annotated tags. [1]
This helps display a diagnostic version label, but depends on available tags and history. A shallow clone or different local tags can change the context. Retain the actual commit identifier for exact traceability.
Sources
For further detail and to check the information: