Skip to contentSkip to conversation

question re tags

DISCUSSION John Stean 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore

John Stean

author
#0 lore raw

Ive been tagging some commits using tortoise git , for example with "v1.0", "v1.1" etc. In tortoise git log the tag sits alongside the commit as I expect. But when I do a git describe it outputs the first tag along with the latest commit. What am I doing wrong?

#1 lore raw
Quoted 5 lines · John Stean

Ive been tagging some commits using tortoise git , for example with "v1.0", "v1.1" etc. In tortoise git log the tag sits alongside the commit as I expect.
But when I do a git describe it outputs the first tag along with the latest commit. What am I doing wrong?

Those tags are probably lightweight tags, so by default git-describe doesn't take them into account. You can pass the --tags flag to tell it to consider lightweight tags as well.

cmn