如何在 git 中以漂亮的格式查看一天的提交?

How to view commits from one day only in a pretty format in git?

我想在控制台中查看提交历史:

  1. 只有一天,例如5 月 14 日,
  2. 每行仅包含:a) 提交消息,b) 提交 SHA,c) 作者。

我试过了git log --after="May 13" --before="May 15" --pretty=oneline

但它没有给出提交的作者。

您可以使用 --format 标志自行格式化。例如:

git log --after="May 13" --before="May 15" --format="%H %aN> %s"