git describe

Give an object a human-readable name based on an available ref. More information: https://git-scm.com/docs/git-describe.

git describe

git describe --abbrev=4

git describe --all

git describe v1.0.0

git describe branch_name