如何获得多个作者的提交?

我可以获得一位作者的提交,例如:

git log <branch_1>..<branch_2> --author=John
git log <branch_1>..<branch_2> --author=Mike

但是我怎样才能同时获得两者的提交John, Mike呢?

回答

通过--author两次:

git log -i <branch_1>..<branch_2> --author=john --author=mike

或者,由于--author接受正则表达式,您可以执行以下操作:

git log --author='(John)|(Mike)'


以上是如何获得多个作者的提交?的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>