Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

shortcut to show git diff with origin master when working on a different branch with intellij

I tend to check git diff with origin master using intellij many times a day and it has become a laborious task for me.

I use git diff tool provided by intellij...as suggested here: https://stackoverflow.com/a/49642681/2960555

Is there a way to add shortcut for this manual steps.

like image 350
unknownerror Avatar asked Jan 27 '26 00:01

unknownerror


1 Answers

As I see, you can assign a shortcut for Compare with Branch..., but not automatically select the origin/master or any other branch.

To make it, go to Settings (Ctrl + Alt + S) → Keymap, select Version Control SystemsGitCompare with Branch..., right click on it and select Add Keyboard Shortcut.

enter image description here

like image 168
Dmitriy Popov Avatar answered Jan 28 '26 15:01

Dmitriy Popov