Alan Quigley Alan Quigley - 1 year ago 188
Git Question

Setting up sublimetext 3 as git commit text editor

I'm having trouble setting up sublime as my git commit message editor.

git config --global core.editor "subl"

error: cannot run subl: No such file or directory
error: unable to start editor 'subl'
Please supply the message using either -m or -F option.

subl work perfectly otherwise.

Answer Source

You can solve this by putting in a full path

git config --global core.editor "/Applications/Sublime -n -w"

Source: OXS Commandline

EDIT: If the name of the app is not Sublime you will want to replace that with the correct name.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download