This guide was created with Scribe in 27 seconds. Sign in and create your own!
How to Compare Branches in GitHub
|
0 step |
27 seconds
Start by opening your terminal or shell.
Zoom Saved
2
CD into your repository.
Zoom Saved
3
Enter the git diff command in the following format:
git diff main..second-branch [[Enter]]
Type git diff, followed by the name of your first branch, two dots, and the second branch. The resulting output is a comparison of the two branches.
Zoom Saved
Was this Scribe helpful? Save this document for future reference.
Save for Later
Have something to say?Create an account to leave messages for the author to see!Create an account
Feedback
This Scribe is in tip-top shape!Leave feedback if there are any issues with this Scribe