11

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?

1 Answer 1

18

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}
4
  • How to compare if the commit limit exceeds 250 ?
    – cjahangir
    Commented Mar 2, 2017 at 5:45
  • Until they change it, you can't compare if commits are over 250 @cja Commented Mar 2, 2017 at 15:41
  • @EightDaysofMalaise is it possible to compare a specific directory between two branches?
    – onassar
    Commented May 7, 2018 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
    Commented Jun 8, 2018 at 5:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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