Skip to content

Instantly share code, notes, and snippets.

@mwallner
Created March 15, 2023 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwallner/90c0a30d2e9602c88114610bafc0cc4d to your computer and use it in GitHub Desktop.
Save mwallner/90c0a30d2e9602c88114610bafc0cc4d to your computer and use it in GitHub Desktop.
chronologically sort git tags by commit-date
git tag -l --format="%(refname) :: %(if)%(committerdate:iso)%(then)%(committerdate:iso)%(else)%(*committerdate:iso)%(end)" | % {($r,[datetime]$t)=$_.Split("::"); @{r=$r;t=$t}} | Sort t | Select r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment