use Sublime Text 3 as editor for commit message #421

idomitori opened this Issue Aug 18, 2015 · 4 comments


None yet

4 participants


I try use this solution and this git config --global core.editor "subl -w", but it just open new tab in ST3 with template for commit and get me this error:
git commit
Aborting commit due to empty commit message.

It means -w flag was ignored? How to fix the problem?


I found this solution, and it work for me. It fix incorrect path to a COMMIT_EDITMSG.

@idomitori idomitori changed the title from How to use Sublime Text 3 to write commit message? to use Sublime Text 3 as editor for commit message Aug 20, 2015

FAQ updated. Thx

@tombujok tombujok closed this Aug 23, 2015
CerebralMischief commented Jul 20, 2016 edited

Dumb question, but when using the solution above, I get this message: /usr/local/bin/subl: line 4: /home/[my user name]/.git/COMMIT_EDITMSG: No such file or directory The .git folder is present and just for the heck of it, I tried creating a file with the name of COMMIT_EDITMSG and that didn't resolve is... any suggestions?

Also - just FYI: If I happen to type cd /home/[my user name]/.git it works just fine.

Thanks in advance!

Log1x commented Dec 21, 2016

I know this is old, but I tried all of the suggested methods through out multiple issues concerning subl and found to be the best solution across the board.

Hopefully this helps someone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment