The question is, how do I get the correct version (shown using git describe ) when develop after I combined it into master and tagged master?
I use the usual git branch - master for production. Let's say git describe shows 1.5 to master, and after merging with develop, master shows 1.5-234-g1e894af .
So I create a new annotated tag with the git tag -a 1.6 and thus git describe master git tag -a 1.6 now shows 1.6 .
BUT: git describe develop still shows 1.5-something , which is strange for me - it has the same commits as in master - why does Git believe that it still belongs to version 1.5 ?
Nothing better comes to my brain, so I just combine master with development, and after that the scan 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 that it makes no sense to do, but how to achieve the correct version then?
Denis chmel
source share