Use git config --global core.editor "/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl -n -w" Or appropriate path to set sublime 2 as default editor for git.