git log --diff-filter=A --follow --format="%h %ad %ce" -1 -- requirements.txt | cat
# 6a0eebf 2019-05-22 19-47-09 bobo@example.com
TOC
获取文件添加到 git 的时间
发布于码厩技术博客的所有文章,除注明转载外,均为作者原创,欢迎转载,但必须注明出处。
尊重他人劳动,共创开源社区!转载请注明以下信息:
转载来源: 码厩技术博客 [https://www.markjour.com]
原文标题:获取文件添加到 git 的时间
原文地址:/article/20190801-finding-the-date-time-a-file-was-first-added-to-a-git-repository.html
尊重他人劳动,共创开源社区!转载请注明以下信息:
转载来源: 码厩技术博客 [https://www.markjour.com]
原文标题:获取文件添加到 git 的时间
原文地址:/article/20190801-finding-the-date-time-a-file-was-first-added-to-a-git-repository.html
如果你有魔法,你可以看到一个评论框~