繁体   English   中英

使用git cli,如何获取我有权访问但尚未克隆的存储库的最新提交日期和时间?

[英]Using git cli, how can I get the date and time of the latest commit of a repository that I have access to but have not cloned?

我需要检查将不会克隆但可以通过ssh密钥访问的最新回购提交的日期时间。

编辑:刚刚意识到我的问题是不精确的,不是我需要问的问题。 关闭此窗口,然后再次询问。

克隆并尝试git log --all --date-order -n 1 --pretty=format:%cd 请注意,日期格式很多,请参见https://git-scm.com/docs/pretty-formats

如果您不想克隆整个存储库,请尝试在克隆上使用--depth标志来限制要提取的历史记录。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM