How to sort git tags by version string order of form rc-X.Y.Z.W?

后端 未结 7 2156
天命终不由人
天命终不由人 2020-11-28 03:44

When I enter a command:

git tag -l

I get such results:

rc-0.9.0.0
rc-0.9.0.1
rc-0.9.0.10
rc-0.9.0.11
rc-0.9.0.12
rc-0.9.0.2         


        
7条回答
  •  情深已故
    2020-11-28 04:39

    Adapt this perl script, which sorts tags that look like client_release/7.2/7.2.25, to your specific tagging scheme.

提交回复
热议问题