[英]Git - how to find first commit and get changed files of specific branche
[英]How to find the date of the first commit of files in git
是否有办法查看第一次提交文件列表的日期,以便我可以按列表排序?
对于上下文,我正在使用Node.JS,使用它创建一个简单的博客,其中“数据库”实际上是一个git存储库。
我以为我会尝试列出特定目录中的所有文件,然后在每个目录上调用类似的东西:
git log --format="format:%ci" --reverse [my file here]
这将输出如下内容:
2010-09-01 11:42:56 -0700
2010-09-22 12:17:19 -0700
2010-09-22 13:18:11 -0700
2011-03-05 00:11:19 -0800
2011-08-26 08:50:02 -0700
2011-08-26 08:51:50 -0700
然后,获取第一个结果并使用它进行排序。
有没有更好的办法?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.