How can I configure git to open the relevant COMMIT_EDITMSG in sublime text 3?

388 views Asked by At

On a windows machine.

I have run git:

config --global core.editor "[path to sublime_text.exe] -w" 

and sublime text does in fact open when I make commit, however instead of opening the relevant COMMIT_EDITMSG it opens up a new blank tab titled "$@". I then have to open up the correct COMMIT_EDITMSG within sublime text before saving it.

I am hoping there is a way to set up git with sublime text 3 so that I can skip the manual navigation and the relevant COMMIT_EDITMSG opens whenever I run git commit.

1

There are 1 answers

0
Duncan Lock On BEST ANSWER

You could install the GitSavvy plugin for SublimeText3 - you can then do all this inside sublime - with lots of other benefits, too.