开发者

git commit -v problem with Mac OS X?

I setup TextMate (mate -w) for editing message for committing with git as follows.

git config --global core.editor "mate -w"

The problem is when I run 'git commit -v', instead of TextMate, COMMIT_EDITMSG is open with other editor (for my case, Aquamcs), and I can see the error message in command line.

Aborting commit due to empty commit message.

What开发者_运维百科's wrong with this?

SOLVED

mipadi helped me to solve this issue. I had a GIT_EDITOR environment variable set in my .bashrc file. After removing this one, everything works fine.


And you can set EDITOR in your .bashrc to be less specific. This saves time if you always want to use the the same editor.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜