How to Compare Two Branches in Github



Guide

  1. Navigate to the repository where the branches are located.

  2. Click on the 'Compare & pull request' button.

  3. Click the branch dropdowns to change the base and compare branches.

  4. The 'base' branch is the branch you want to compare to.

  5. The 'compare' branch is the branch you want to compare from.

  6. GitHub will show you a comparison of commits and changes or file differences between the two branches.

🚀

Create your first interactive demo in minutes

No credit card required • Start building today

Start free

    This website uses cookies to enhance the user experience.

    AcceptDecline