As a newbie git user, when I try to commit my work with
git commit -a -v
and I enter a commit message in my editor, I close the file, and g
Make sure to sure a capital W.
git config --global core.editor "open -a 'Sublime Text 2' -W"
or use the following command to replace an existing one that isn't working properly.
git config --replace-all core.editor "open -a 'Sublime Text 2' -W"