add correct indention

Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
This commit is contained in:
Nico Schottelius 2015-02-11 11:42:44 +01:00
parent fe488bfb09
commit 374aad714e
1 changed files with 2 additions and 2 deletions

View File

@ -1,12 +1,12 @@
[[!meta title="How to show the latest git tag"]]
# TL;DR
## TL;DR
If you want to show the name of the latest tag, use:
git for-each-ref --sort=-taggerdate --count=1 --format '%(tag)' refs/tags
# Some background
## Some background
The command *git for-each-ref* is pretty useful if you want to find something
in a number of commits (or tags in this case). It allows you to use variations of