【发布时间】:2011-06-11 20:44:11
【问题描述】:
这就是我的 ~/.bashrc 中的内容
export GIT_EDITOR='/Applications/MacVim.app/Contents/MacOS/Vim -g '
当我发布时
git commit
然后我得到一个 macvim 编辑器,但在命令行上我看到了这条消息
$ git commit
Aborting commit due to empty commit message.
如果我使用更改 GIT_EDITOR 来使用 textmate,那么一切正常
export GIT_EDITOR='/usr/local/bin/mate -w'
我不想使用 textmate。我想使用 macvim。我正在使用 mac 并使用 bash。
【问题讨论】: