GitHub – Compare Releases to a Specific Branch

github

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?

Best Answer

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}