简体   繁体   中英

Git: How to find commits done from root?

History in GitHub website doesn't show commits done from root.

Is there a way to find commits done from root?

Thanks!

如果root是提交的作者,则可以使用--author标志:

git log --author root

If by root you mean a branch named root, then you can go into the command line and type in:

git log | grep -B 2 'root'

This will return all of the commits done by root , and the commit hash.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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