9

I notice that in the GitHub “Releases” page there is a handy mention of how many commits have occurred since branch “Develop”. For instance, see this example from AnkiDroid.

enter image description here

How can GitHub be configured to show how many commits were made to a different branch?

16

You can see the commits and changes between tags if you change the URL to the following format:

https://github.com/{username}/{repo}/compare/{older-tag}...{newer-tag}

This will show you the count and changes of up to 250 commits made between the tags.

So from your example it would be:

https://github.com/ankidroid/Anki-Android/compare/v2.2beta7...v2.2beta8

Similarly if you wanted to compare commits between branches the URL would be like this:

https://github.com/{username}/{repo}/compare/{branch}...{other-branch}
  • How to compare if the commit limit exceeds 250 ? – cjahangir Mar 2 '17 at 5:45
  • Until they change it, you can't compare if commits are over 250 @cja – Eight Days of Malaise Mar 2 '17 at 15:41
  • @EightDaysofMalaise is it possible to compare a specific directory between two branches? – onassar May 7 '18 at 16:51
  • Weird that you have to manipulate the url to get this feature, while all interface elements to provide this feature seem to exist in other places. Still, it works :) – Maurice Jun 8 '18 at 5:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.