I'd like to know how many contribution of my collaborator. So I need know how many code write by himself and push to github. However, in github, there are also merge message will disturb me.
Is there a way in github or in git that I can know a collaborator actually commit code in a certain time? ( in every branch )
update Can I see the diff of non-duplicated commit of this collaborator? ie. some other person's commit will also show in merge commit.
git shortlog
is the tool you're looking for. Use:
git shortlog -s
to get the summary of commits by user.
Github actually does this for you in the Graphs section of the repository. Both the "Contributors" and "Impact" tabs include #commits, +lines/-lines for all non-merge commits.
Edit: just realized you wanted data for all branches, Github's graphs only report on the master branch. I don't know of any way to get all branch information from Github.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With