LoginSignup
2
1

More than 1 year has passed since last update.

【Git】git commitしたら"Waiting for your editor to close the file...vscode –wait: vscode: command not found"と怒られた時の対処法

Last updated at Posted at 2023-03-26

問題

$ git commit
hint: Waiting for your editor to close the file... vscode --wait: vscode: command not found
error: There was a problem with the editor 'vscode --wait'.
Please supply the message using either -m or -F option.

エディターがファイルを閉じるのを待っていると記載がある。
恐らくファイルと閉じずにVSCodeを終了し、commitとしようとしたことが原因。

解決策

$ git config --global core.editor 'code --wait'

VSCodeの再設定が必要ということで上記のコマンドを入力。

おわりに

はじめて記事を書きました。
参考にさせていただいた記事と同じような内容ですが、
実際に書くことで書きかたや内容についてより調べて理解しようとできたことがよかったです。
Qiita記事の書き方について参考になった記事がいくつかありましたので下記記載します。
今後も投稿して砕けた内容も書けるようになれたらいいなと思ってます。

エラーについて参考にさせていただいた記事

Qiita記事作成について参考にさせていただ記事

2
1
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
2
1