[Git] error: There was a problem with the editor 'vi'. というエラーの解決方法
重岡 正 · Thu, April 12, 2012
Git にて、git commit して Vim 上でコメント書いて、コミットしようとしたらエラーが発生しました。
エラーメッセージ
$ git commit
error: There was a problem with the editor 'vi'.
Please supply the message using either -m or -F option.
Git に使用するエディタを設定してあげればOKです。
Vim の Path を確認する
$ which vim
/usr/local/bin/vim
Git のコアエディターを Vim に設定する
$ git config --global core.editor "/usr/local/bin/vim"
以上です。