【问题标题】:git print filename and last updated dategit 打印文件名和最后更新日期
【发布时间】:2013-02-08 11:46:29
【问题描述】:

是否有 git 命令可以显示:

filename last_updated

我最接近的是:

git log --format=format:'%ci' --name-only

但这需要处理和解析才能得到我想要的。

【问题讨论】:

  • 你为什么不喜欢 'ls -lah' ?您感兴趣的日期是远程服务器还是本地?

标签: git last-modified


【解决方案1】:

感谢 xcorsx...您为我指明了正确的方向:

find ./ -type f -printf "%h/%f %TY-%Tm-%Td\n"

【讨论】:

  • 请注意,这将打印当前目录中所有文件的日期,而不仅仅是Git跟踪的文件。
猜你喜欢
  • 1970-01-01
  • 2020-05-12
  • 2022-11-23
  • 2018-03-31
  • 1970-01-01
  • 1970-01-01
  • 2016-01-09
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多