【问题标题】:Git repo update date and time [duplicate]Git repo更新日期和时间[重复]
【发布时间】:2013-05-17 00:18:36
【问题描述】:

是否可以从远程 repo 获取我的 git 存储库更新的日期和时间。目前我使用“repo sync”和“git pull --rebase”来更新我的本地存储库。

谢谢

【问题讨论】:

    标签: git


    【解决方案1】:

    试试

    git rev-list --format=format:'%ai' --max-count=1 `git rev-parse HEAD`
    

    来自https://gist.github.com/bitrut/1494315

    【讨论】:

      猜你喜欢
      • 2018-04-25
      • 2020-10-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多