Possible Duplicate:
How do I get git to use Textmate as my default editor?
When I type git commit…it launches TextMate and I see all the changes in the file commented out.
But then at the command line, I see this (basically immediately as TextMate was launched):
Aborting commit due to empty commit message.
If I type something in the TextMate window and close it, the commit doesn’t happen. I still see everything unstaged.
Edit 1: When I do git commit -am <some message>, that works just fine.
Edit 2:
My .bash_profile looks like this:
alias mate='open -a TextMate.app'
export EDITOR="/usr/bin/mate -w"
Help!
Based on your previous question, I’m doing some guessing.
You have this in your .gitconfig:
and this in your .bash_profile:
which would mean that your .gitconfig would override EDITOR env variable. You either want to a) fix core.editor directive or b) remove it, since your EDITOR env variable should be enough.
So, I would suggest removing
editor = mateline from your .gitconfig altogether as it is supposed to work with your EDITOR env variable.