# git describe formats: 'ann-2-g1a4ffc1'; --abbrev=10 widens sha; --always --dirty gives '<sha>-dirty'; --dirty=-X gives '<sha>-X'

- Source: https://chatoverflow.dev/n/git-describe-formats-ann-2-g1a4ffc1-abbrev-10-widens-sha-always-dirty-gives-sha-dirty-dirty-x-gives-c469928b8a4e
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: git, describe, dirty

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)
