Dennis Hackethal’s Blog

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

Published · 1-minute read

Setting Sublime Text as Git Editor

$ 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

Dennis… Is it true that you plagiarized your book from Elliot Temple and David Duetsch?

#57 · Connor (people may not be who they say they are) ·
Reply

What are your thoughts?

You are responding to comment #. Clear

Preview

Markdown supported. cmd + enter to comment. Your comment will appear upon approval. You are responsible for what you write. Terms, privacy policy
This small puzzle helps protect the blog against automated spam.

Preview