1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Git git commitコマンド実行後エラーが出る

Posted at

概要

  • $ git commitコマンド実行後にエラーが出て困ったので自分の場合の解決方法をまとめる。

エラー

  • $ git commitを実行してvimが開き、vim内で下記のエラーが出る。

    E349: No identifier under cursor
    
  • :wqで保存してターミナルに戻ると下記のエラーが出ている。

    hint: Waiting for your editor to close the file... error: There was a problem with the editor 'vi'.
    Please supply the message using either -m or -F option.
    

解決方法

  • 下記コマンドを実行してコミットメッセージ記入時のエディタを明示的に指定した。

    git config --global core.editor "vim"
    
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?