gitで使用するエディタを登録しようと]$ git config --global core.editor 'vim'を実行し
$ git config --listを実行すると
user.name=Taro Sasaki user.email=XXXXX.XXXXX@gmail.com core.editor=vim core.excludesfile=/home/vagrant/.gitignore_global core.autocrlf=input color.ui=auto core.repositoryformatversion=0 core.filemode=true core.bare=false core.logallrefupdates=true
と表示されます。
その後 $ git commit を実行すると以下のエラーがでます。
error: cannot run vim: No such file or directory error: unable to start editor 'vim' Please supply the message using either -m or -F option.
なので
$ git config --global core.editor 'vim -m'
と打って $ git commit を実行したのですが
vim -m: vim: command not found error: There was a problem with the editor 'vim -m'. Please supply the message using either -m or -F option.
となってしまいます。
$ git add .
$git commit
としても同じです。
どのように記述すればいいのでしょうか?ご教示お願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/03/27 13:23
2019/03/27 13:28
2019/03/27 14:00
2019/03/27 14:01
2019/03/27 14:08 編集
2019/03/27 14:07
2019/03/27 14:09
2019/03/27 14:14
2019/03/27 14:14
2019/03/27 14:17
2019/03/27 14:22