有一些标签:
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)
| 归档时间: |
|
| 查看次数: |
4974 次 |
| 最近记录: |