List all developers on a project in Git

后端 未结 9 2082
半阙折子戏
半阙折子戏 2020-12-07 08:25

Is it possible to list all users that contributed to a project (users that have done commits) in Git?

Any additional statistics?

9条回答
  •  南方客
    南方客 (楼主)
    2020-12-07 08:37

    I am using GHI to open issues and where I can assign issues to specific users as long as I know their usernames

    I don't if this is going to be helpful for someone but I am just going to leave the solution that worked for me here:

    To get only the authors username from the GitHub I ran

    git shortlog -sne | grep +  | sed -e "s/.*+//; s/@.*//"
    

    which will only list the username of the authors on the current project.

    Then i can pick an username and assign an issue to him/her.

    FOR ANYONE WHO WANTS TO OPEN ISSUES AND/OR ASSIGN TO SOMEONE FROM CMD/TERMINAL, HERE THE DOCUMENTATION OF THE GHI https://github.com/stephencelis/ghi

提交回复
热议问题