Compare two branches on GitHub 

Just found out that after pushing a new branch to a project hosted on GitHub you can see the diff between this branch and main integration branch:

  • push new branch
  • go to your home page and check out ‘Public Activity’ section
  • click on the link like ‘Compare trunk branch with master’

This will show you new commits in the just created branch:

It’s also possible to explicitly select branches to compare under ‘Source’ tab:

  • switch to the first branch with ‘Switch Branches’
  • go to ‘Branch List’ and select the second branch