Dennis Hackethal’s Blog

My blog about philosophy, coding, and anything else that interests me.

Setting Sublime Text as Git Editor

Published · 1-minute read
$ git config --global core.editor "subl -n -w"

Source

The -n tells Sublime to open a new window and -w says to wait for the files to be closed before returning. (Run $ subl --help to find out what these and other flags mean.)

If that doesn't work, try:

$ git config --global core.editor "/Applications/Sublime Text.app/Contents/MacOS/Sublime Text"

Source

You can always confirm which editor you have set for git by running

$ git config --global -e

What people are saying

What are your thoughts?

You are responding to comment #. Clear
Markdown supported. cmd + enter to submit. You have free speech here. You’re responsible for what you write. Terms, privacy policy
Your real name is preferred.
This small puzzle helps protect the blog against automated spam.

New GPG-sign your comment to create or add to a public profile with all your comments. Your name is derived automatically from your public key. No puzzle required.

Paste a detached signature of your comment.

              
Paste your public key if you haven’t before. You consent to your key’s contents being displayed to the public.

              

Preview