[英]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.