有一些标签:
first
second
third
fourth
Run Code Online (Sandbox Code Playgroud)
我需要在"秒"之前得到标签(第三个).
ara*_*aer 21
git describe --abbrev=0 second^
或者在最后两个标签之间
git log $(git describe --abbrev=0 --tags $(git describe --abbrev=0)^)...$(git describe --abbrev=0)
Run Code Online (Sandbox Code Playgroud)