Number of commits on branch in git

前端 未结 4 958
甜味超标
甜味超标 2020-12-08 20:41

I\'m writing a small script and want to know how many commits I made on a current branch since it was created.

In this example I\'d have 2 commits made on chil

4条回答
  •  孤城傲影
    2020-12-08 21:40

    If you want to see how many commits you or anyone else has made, starting from your current HEAD, you can do:

    git shortlog -sn
    

    Example output:

       490  Donald Duck
       312  Some Developer
       274  John Doe
       144  Jane Doe
         5  Leet Hacker
    

提交回复
热议问题