I tags like below
INT_TAG1 // latest tag
INT_TAG2
INT_TAG3
REL_TAG1
REL_TAG2
REL_TAG3
How to get latest REL* tag from the above list
I can get the latest tag based on below command:
'git for-each-ref refs/tags --sort=-taggerdate --format=%%"(refname)" --count=1'
but here I need the latest tag based on substring REL
尝试使用refs/tags/REL*
而不是refs/tags
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.