0
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】commit時の error: There was a problem with the editor 'code --wait'. 解消法

Posted at

状況

~/.gitconfigに以下のように設定した上でgit commitを実行したところエラーが発生しました。

~/.gitconfig
[core]
  editor = code --wait
ターミナル
$ git commit 
hint: Waiting for your editor to close the file... code --wait: code: command not found
error: There was a problem with the editor 'code --wait'.
Please supply the message using either -m or -F option.

解消法

以下の方法でpathを通すことで解消しました。

VSCodeを開き、cmd + shif + pを入力。
「シェルコマンド:PATH内にcodeコマンドをインストールします」を実行。
スクリーンショット 2022-07-24 午前3.37.29.png

0
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
0
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?