If you want to use Sublime Text to edit your Git comments then you are just a couple of steps away.
First, you need to make sure your sublime executable is on your system or user path. I have my user’s bin directory (~/bin) on my path. I create a symlink to the subl executable as ~/bin/sublime.
ln -s /Applications/Sublime Text.app/Contents/SharedSupport/bin/subl ~/bin/sublime
Notice how I’ve renamed the executable from subl to sublime.
Next you need to edit your Git config and set your default editor:
git config --global core.editor "sublime -n -w"
The editor options are:
n - Open a new window w - Wait for the files to be closed before returning
The next time you need to edit anything for Git you’ll be doing it in Sublime! :)