Extract a sorted by creation list list of git repository tags:
The git command line:
git for-each-ref --format='%(*committerdate:raw)%(committerdate:raw) %(refname) %(*objectname) %(objectname)' refs/tags | sort -n | cut -d'/' -f 3 | cut -d' ' -f 1
Create a new git alias for it (stags - Sorted tags):
vi ~/.gitconfig
# place the new alias in the alias section:
[alias]
stags = !git for-each-ref --format='%(*committerdate:raw)%(committerdate:raw) %(refname) %(*objectname) %(objectname)' refs/tags | sort -n | cut -d'/' -f 3 | cut -d' ' -f 1
enjoy with:
git stags
Thank you comment.
I googled for this feature and got your gist.
I hope this gist and comments to be someone help. :D