Getting tags
Getting git tags
1 | git tag |
Getting git tags sorted alphabetically
1 | git tag | sort |
Getting git tags sorted by Semantic Version
1 | git tag --sort=version:refname |
Defining a reusable alias
Getting git tags sorted alphabetically
You can define a reusable alias through
1 | git config --global alias.tag-sort 'tag --sort=version:refname' |
and use it through
1 | git tag-sort |