Possible Duplicates:
How can I set up an editor to work with Git on Windows? Trouble on setting the git 'core.editor'
I'm trying to change my default git text editor to TextMate, such that forgetting the -m tag on a commit will bring me into TextMate and not vi. I have
[core]
editor = mate -w
in my ~/.gitconfig, but it still throws the following error at me:
error: cannot run TextMate: No such file or directory
error: There was a problem with the editor 'TextMate'.
Please supply the message using either -m or -F option.
Fiddled around with various guides on how to set/unset the core edito开发者_开发技巧r, and couldn't really find anything that worked so I'm here for a pick-me-up.
See my answer in this question: Trouble on setting the git 'core.editor'
Since you already have $EDITOR
set up correctly, just remove the entries from git:
git config --global --unset-all core.editor
now try a git commit again.
精彩评论