add correct indention
Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
This commit is contained in:
parent
fe488bfb09
commit
374aad714e
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue