git describe --tags

Category: Git - Advanced

git describe --tags

Describe current commit relative to nearest tag

Describes the current commit relative to the nearest tag: e.g. 'v1.0.0-5-gabcdef' means 5 commits after tag v1.0.0.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.