New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use Sublime Text 3 as editor for commit message #421

idomitori opened this Issue Aug 18, 2015 · 4 comments


None yet
4 participants

idomitori commented Aug 18, 2015

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?


This comment has been minimized.

idomitori commented Aug 19, 2015

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


This comment has been minimized.


tombujok commented Aug 23, 2015

FAQ updated. Thx

@tombujok tombujok closed this Aug 23, 2015


This comment has been minimized.

CerebralMischief commented Jul 20, 2016

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!


This comment has been minimized.

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