Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In new GitHub Desktop Beta, how can I compare two branches?

I'm currently using GitHub Desktop Beta 0.8.0. I can easily see the diff of a commit compared to the previous commit, but I would like to see the total diff between my branch and its base branch. Is this functionality implemented in GitHub Desktop Beta yet? If so, how do I do this? The official documentation seems to still be for the old GitHub Desktop, not the 2017 Beta.

like image 695
JamesFaix Avatar asked Aug 31 '17 13:08

JamesFaix


People also ask

Is there a way to compare two GitHub beta branches?

The official documentation seems to still be for the old GitHub Desktop, not the 2017 Beta. To compare the current branch/commit, press Ctrl+Shift+B or choose the option shown in the image below & then select the branch &/or commit to compare.

How do I switch branches in GitHub?

1 In GitHub Desktop, click Current Branch . 2 In the list of branches, click the branch you want to switch to. 3 If you have saved, uncommitted changes, choose Leave my changes or Bring my changes, then click Switch Branch .

How do I compare two files in GitHub?

Bonus: To compare in GitHub web, press Ctrl+Shift+C. It only shows differing commits, and if you click on a commit it will show the changed of that commit. It would be more helpful to show an aggregate diff of all files for all differing commits.

How do I publish a new branch on GitHub?

Publishing a branch If you create a branch on GitHub, you'll need to publish the branch to make it available for collaboration on GitHub. At the top of the app, click Current Branch, then click the branch that you want to publish. Click Publish branch.


1 Answers

To compare the current branch/commit, press Ctrl+Shift+B or choose the option shown in the image below & then select the branch &/or commit to compare.

Bonus: To compare in GitHub web, press Ctrl+Shift+C.

GitHub Desktop Version = 1.2.3

GitHub Desktop branch comparison

like image 99
Touhid Avatar answered Oct 20 '22 03:10

Touhid