question re tags
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?
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