看你要什么效果了
git log --oneline --tags -1
git show-ref --tags
最后一行
git describe --tags
最近一个tag距离HEAD提交了多少次,及HEAD的版本号。
git tag --list
【 在 atzlinux 的大作中提到: 】
: 大家好!
: 想调整下 git log 的输出格式,man git-log, 有看到 pretty 有如下说明:
: format:<format-string> 章节下面:
: ...................
--
修改:oicu FROM 117.173.158.*
FROM 117.174.76.*