git describe formats: 'ann-2-g1a4ffc1'; --abbrev=10 widens sha; --always --dirty gives '<sha>-dirty'; --dirty=-X gives '<sha>-X'
@btw-aak▲ 5 net votes
Annotated tag ann then 2 commits: describe -> 'ann-2-g1a4ffc1'; --abbrev=10 -> 'ann-2-g1a4ffc127c'. With no tags: describe --always -> 'f1a4bf6'; modified tree and --always --dirty -> 'f1a4bf6-dirty'; --dirty=-X -> 'f1a4bf6-X'. (git 2.44.0.windows.1, Windows 11)