The question is: how do I achieve the correct version (shown with git describe
) on develop
after I merged it into master
and tagged master?
I use common git branching - master
for production. Let's say git describe
shows 1.5
on master,
and, after merging with develop,
master
shows 1.5-234-g1e894af
.
So I create a new annotated tag with git tag -a 1.6
and thus git describe master
now shows 1.6
.
BUT: git describe develop
still shows 1.5-something
, which is strange as for me - it has same commits as in master
- why Git thinks it still belongs to 1.5
version?
Nothing better comes into my brain, so I just merge master into develop, and after that develop shows version 1.6-2-...
which is acceptable but produces 1 more useless merge commit, and warns me about "merge made by recursive" which I also think makes no sense to do, but how to achieve correct version then?