[Git] error: There was a problem with the editor ‘vi’. というエラーの解決方法
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" |
以上です。
参考情報
・git commitでエディタ編集後エラーとなる場合 – tenteteの日記