How to git log from all branches for the author at once?

前端 未结 2 1863
陌清茗
陌清茗 2020-12-07 08:20

I need to get the report of all commits that the author did. So far, I have the script that wraps the following command:

git log --pretty=format:\"%ad:%an:%         


        
相关标签:
2条回答
  • 2020-12-07 09:01

    Instead of --all you may want to use --branches, since --all also includes refs/tags and refs/remotes.

    0 讨论(0)
  • 2020-12-07 09:02

    Your command is right, since you use the --all switch which gives all commits from all branches. To answer the question in your comment, it works also in bare repositories.

    0 讨论(0)
提交回复
热议问题