Is there any way to compare 2 branches (branch1 and branch2) with gitkraken?
I want a list of files that have changes
On the Github, go to the Source view of your project. You will see a link named 'Branch List'. Once the page opens you can see a list of all the remote branches. Hit on the Compare button in front of any of the available branches to see the difference between two branches.
Currently, the only way to compare branches in Atlassian Stash is to create a pull request first. Otherwise, you can use local git commands to compare arbitrary commits or branches.
If you want to find out difference between branch A and B First checkout on branch A then click on branch B and select commits it then you can find changes on right panel.
and can select multiple commit rows in the graph using Shift Click to show its merged diff
GitKraken, as far as I know after some looking into that matter, doesn't let you compare branches regarding their commits. One way to do what you want though, is to use Soloing; you right-click the first branch you want to compare and choose 'Solo'. Orange circles will appear to the left of the branches names instead of the eye. Then click the faded orange icon next to the second branch you want to solo. Only those branches will be shown in the commit view.
Then you just select one commit, and click the second while holding Shift. The list of changed files will appear on the right. Clicking on a file will also show you the diff of contents.
It's worth mentioning though that you can't set the direction of the diff (source and target branch) ; but this has helped me to find out what's changed between two branches.
GitKraken allows you to compare two branches, and the commits from each branch, by CMD/CTRL-clicking the two commits from different branches to see their differences. If you want to compare the latest commits to each branch, you'd CTRL-Click the head commit from each branch.
I don't know if this feature is recent, but it is very simple in GitKraken now to display the diff of 2 branches.
You just have to click on the commit of the first branch, hold Shift key, and click to the second commit, which can be anywhere so for example a commit of the second branch.
You can solo the 2 branches for simplifying the graph before to do this action.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With