Problem with Git command setting vscode as default for windows

What is wring in setting git vscode as default editor for windows (see below).
vscode was installed before these commands. How can I resolve the issue?

afine@AlexHW MINGW64 ~
$ git config --global core.editor “code --wait”

afine@AlexHW MINGW64 ~
$ git config --global -e
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’.

I followed the below article, and it worked for me. It’s basically the same as what you tried. Have you tried updating packages and software?

Make VS Code Your Default Git Editor :memo: - DEV

1 Like