Configuration issue

I keep receiving the following error code on Terminal.

Jazz-Mac-mini:~ jazzsb$ git config --global core.editor “code --wait”
Jazz-Mac-mini:~ jazzsb$ 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 have the latest version of VS Code.