如何在 Git 中查找特定用户的提交? [英] How to find commits by a specific user in Git?

查看:14
本文介绍了如何在 Git 中查找特定用户的提交?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的项目使用 Git 作为版本控制系统,最近我需要审查某人的提交.如何查看特定用户的提交列表?

Our project uses Git as the version control system and recently I needed to review someone's commits. How can I see a list of commits made by a specific user?

推荐答案

git log --author= 将显示针对特定作者过滤的提交日志.(--committer 可以用于committer,如果需要区分的话).

git log --author=<pattern> will show the commit log filtered for a particular author. (--committer can be used for committer if the distinction is necessary).

http://git-scm.com/docs/git-log

这篇关于如何在 Git 中查找特定用户的提交?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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