Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to sort tags on git tag

Use version with sort

```
git tag -l | sort -V
```

or for git version >= 2.0

```
git tag -l --sort=v:refname
git tag -l --sort=-v:refname # reverse
```
 
PREVIOUS NEXT
Tagged: #sort #tags #git #tag
ADD COMMENT
Topic
Name
2+1 =