Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I show statistics for author's contributions in git? [closed]

Tags:

git

I'm working with a team on a git project and I would like to see the contribution of each author in terms of lines written or lines edited etc... how can I show statistics for the authors?

like image 264
Anonymous Avatar asked Mar 10 '17 10:03

Anonymous


People also ask

How do you see who contributed the most on GitHub?

On GitHub.com, navigate to the main page of the repository. Under your repository name, click Insights. In the left sidebar, click Contributors. Optionally, to view contributors during a specific time period, click, then drag until the time period is selected.

Why does GitHub not show my contributions?

Your local Git commit email isn't connected to your account Commits must be made with an email address that is connected to your account on GitHub.com, or the GitHub-provided noreply email address provided to you in your email settings, in order to appear on your contributions graph.

How are GitHub contributions calculated?

Whenever you commit to a project's default branch or the gh-pages branch, open an issue, or propose a Pull Request, we'll count that as a contribution. Repositories are sorted by your recent impact. A commit today is worth more than a commit last week.


2 Answers

As simple as: git shortlog -s -n

like image 177
Kovalex Avatar answered Oct 14 '22 22:10

Kovalex


You could try git-stats or use git command to explore from the logs

Refer following posts

  1. Graphical Stats - Generating statistics from Git repository
  2. https://gist.github.com/eyecatchup/3fb7ef0c0cbdb72412fc
  3. Which Git commit stats are easy to pull
  4. PR-Count Github App - Github ONLY. Thanks @ben
like image 44
Libin Varghese Avatar answered Oct 14 '22 20:10

Libin Varghese