1

How can I know the total number of commits done on a project through the GitHub web interface? How can I get the total number of commits in a specific time frame?

What I can get now is the number of commits done by each developer, not the total one.

Example: https://github.com/BVLC/caffe

Pietro
  • 12,086
  • 26
  • 100
  • 193

5 Answers5

8

As your tags and question line don't limit this to just the GitHub interface, you can get what you want from the command line:

$ git rev-list --count master --since=5.months
577
$ git rev-list --count master --since=4.months
524

As well as --since it supports --until to specify a full range. Manual Reference.

See also, What date formats does git log accept for date parameters?

Community
  • 1
  • 1
bcmcfc
  • 25,966
  • 29
  • 109
  • 181
3

To get to the compare view, append /compare to your repository's path. Every repository's Compare view contains two drop down menus: base and compare

To compare the commits in timeframe you can do type the branch name in the compare dropdown, followed by a @, and then the date wrapped between a { } notation.

Here are two examples:

Date Compairson

Time entered in Weeks

Source: https://help.github.com/articles/comparing-commits-across-time/

Commits Done Using GitHub Web Interface:

Commits are commits whether you do it from the git interface or web interface. I guess there is no way to identify it.

Commits done by each developer:

It is clearly mentioned in the link you provided:

Contributors

Deepesh
  • 6,138
  • 1
  • 24
  • 41
2

You can get total number of commits through a time period with two different ways

First way

Using since and before - since take the start date and before take the end date that you want to get commit from it.

git rev-list --count HEAD --since="Dec 1 2021"  --before="Jan 3 2022"

Second way

Get the total commit by using [second - hour - day - week - month - year]

Get the total commits by second

git rev-list --count HEAD  --since=600.second

Get the total commits by minute

git rev-list --count HEAD  --since=30.minute

Get the total commits by day

git rev-list --count HEAD  --since=28.day

Get the total commits by week

git rev-list --count HEAD  --since=4.week

Get the total commits by month

git rev-list --count HEAD  --since=1.month

Get the total commits by year

git rev-list --count HEAD  --since=2.year
Eng_Farghly
  • 1,987
  • 1
  • 23
  • 34
1

It appears on the project's main page, in the top left corner:

enter image description here

Mureinik
  • 297,002
  • 52
  • 306
  • 350
0

Go to https://github.com/USER_NAME/REPOSITORY. In you case, you have to go to https://github.com/BVLC/caffe.

After visiting the above mentioned page, you can see the total number of commits. Refer the picture below:

enter image description here

abhiarora
  • 9,743
  • 5
  • 32
  • 57