代码之家  ›  专栏  ›  技术社区  ›  Bill

git日志显示具有提交id的标记

git
  •  0
  • Bill  · 技术社区  · 6 年前

    在mac上,我跑步 git log ,它显示提交id和标记(如果有)

    commit d7320183a41a7595d8d8288dfe10289aaa045363 (tag: 2.0.6)
    

    但在linux中,只显示commit id

    commit d7320183a41a7595d8d8288dfe10289aaa045363
    

    有什么设置,我需要做的,以获得标签列表与提交,这将是方便。

    1 回复  |  直到 5 年前
        1
  •  1
  •   Bill    6 年前

    在ubuntu中,git即使在我运行的时候也会使用旧版本(v2.7.1) apt-get install git How do I install the latest version of Git with apt? ),最新版本是2.19.1,它显示了带有commit id的标记。