繁体   English   中英

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

[英]How to get commits by multiple authors?

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

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\)'

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM