Sublime Forum

Can Sublime Merge show diffs between branches?


I commonly find myself running commands which compare branches to each other, along the lines of:

git diff my/current/branch another/branch/to/compare

However, I haven’t yet found a way to do this with Sublime Merge?
Is this possible at the moment? It would really be handy to generate and view the complete diffs between branches.

Another common one is simply git diff master to show the changes between the current branch and the master branch.

If this is already possible, can someone please show me how? :sweat_smile:
If this isn’t currently possible, then I suppose this is a feature request!

1 Like


Cmd/Ctrl + click on two commits, see also



@srbs that indeed does work! Thank you.

I think that a specific command for this would also be great. Perhaps it could be implemented as a plugin in the future. :man_shrugging:



The above no longer works in build 1119 - only changes from the first commit are shown.

Now it has to be done by:

  1. click on the base commit
  2. shift-click or ctrl-cmd-click on commits where you want the changes to show.
1 Like


This is a major omission. If I can git diff master in a terminal, why doesn’t something equally simple work in Sublime Merge? (Build: 2056, Mac). I don’t care if it is a menu command, context menu, etc. It should be easily discovered by a new Merge user.

I’ve tried all manner of Cmd+click combinations between commits and branches as suggested in various threads, without success. For now, I’m sticking with creating disposable PR’s in Bitbucket to do what should be a simple local command.

1 Like


Here’s a demonstration:



The current solution works @bschaaf, but I would love it to be able to do that from the Branches panel ! (Location tab, Branches section)
It would be useful for example when the branches are really spaced our on the Commits tab



I’m wondering if the direction of the compare can be reversed? Looks like I am not able to get that working… on the CLI, it’s a different thing when you do

git checkout branch1
git diff branch2

git checkout branch2
git diff branch1

However, regardless whether I click branch1 and then cmd-click branch2 or the inverse, I always get the same change set. Also tried with both branches explicitly checked out to ensure the same starting point as via CLI… What am I missing?

Build 2074 on Linux w/ git 2.34.1, fwiw.



Hi @rschmied,

It’s currently not possible to reverse the direction of the diff (it will always diff from the oldest to the newest commit), though it’s something we’re definitely looking to improve.

Kind regards,
- Dylan from Sublime HQ



Ahh! That explains it… so, no PEBCAK but a missing feature! looking forward to have that implemented! Thanks :+1:



hello @djohnston, has this been implemented yet? i use diffing between branches a lot, but not being able to change the diff direction makes this almost useless to me.

nonetheless a great sublime merge fan here! thank you

1 Like