【 以下文字转载自 LinuxApp 讨论区 】
发信人: atzlinux (atzlinux), 信区: LinuxApp
标 题: git log format:<format-string> 用法请教
发信站: 水木社区 (Wed May 10 16:26:20 2023), 站内
大家好!
想调整下 git log 的输出格式,man git-log, 有看到 pretty 有如下说明:
format:<format-string> 章节下面:
%(describe[:options])
human-readable name, like git-describe(1); empty string for undescribable
commits. The describe string may be followed by a colon and zero or more
comma-separated options. Descriptions can be inconsistent when tags are added
or removed at the same time.
? tags[=<bool-value>]: Instead of only considering annotated tags, consider
lightweight tags as well.
请问有哪位知道如何把 当前提交最新 的 tags 版本号显示出来吗?
--
FROM 111.55.137.*