Git日志:按提交的作者日期筛选 [英] Git log: filter by commit's author date

查看:2207
本文介绍了Git日志:按提交的作者日期筛选的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这样的提交

I have such a commit

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

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

I want to filter the log and show the commit by AuthorDate.

我试过 - 自& - 直到选项,但它实际上会过滤 CommitDate

I tried --since & --until options, but it actually filter the CommitDate.

只能通过

git log --since='2012-12-01' --until='2012-12-10'

如果我想通过start_date'2012-09-01'和end_date'2012-09-10'

If I want to get the commit filter by start_date '2012-09-01' and end_date '2012-09-10'

任何提示?

Any tips?

推荐答案

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

,然后通过AuthorName和/或日期grep!

and then grep by AuthorName and/or date!

这篇关于Git日志:按提交的作者日期筛选的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆