Git 日志 : filter by commit's author date

标签 git

我有这样的 promise

commit 8a183536da1641afa6bd5a27ae391b387b7cd052
Author:     hidden
AuthorDate: Fri Sep 7 10:13:59 2012
Commit:     hidden
CommitDate: Fri Dec 7 17:29:24 2012

我想过滤日志并显示 AuthorDate 的提交。

我尝试了 --since--until 选项,但它实际上过滤了 CommitDate

这意味着我只能通过

获得提交
git log --since='2012-12-01' --until='2012-12-10'

如果我想通过 start_date '2012-09-01' 和 end_date '2012-09-10' 获取提交过滤器

有什么建议吗?

最佳答案

git log --format=format:"%ai %aE %s"

然后按作者姓名和/或日期进行 grep!

关于Git 日志 : filter by commit's author date,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13987273/

相关文章:

git - 多个 git 编辑器

git - 如何在 git show-branch 中获取提交哈希?

git - 如何使用JGit获取源地址?

git - 仅获取 git 远程存储库的标签/引用

git - 推送后无法在 git 中压缩提交 - Visual Studio

Git-远程 : error: cannot run hooks/post-receive: No such file or directory

git - 如何更改 git 子模块的 HEAD

git - GitHub 上的 ParsePlatform 上的 Parse-server 和 Parse-server-example 有什么区别?

git - 为什么flutter pub找不到我的github ssh-key?

git - "git push --set-upstream origin name/of/my/branch"是否存储中间分支?