Error Waiting for your editor to close the file

Hi,
When I try to open my file with VS code using the command
$ git config --global -e
I get this error

hint: Waiting for your editor to close the file… core --wait: core: command not found
error: There was a problem with the editor ‘core --wait’.

Do you know how to solve this issue?

Thank you for the attention
Malka

You made a typo when configuring your default editor. You wrote “core --wait” instead of “code --wait”. Reconfigure your default editor with

git config --global core.editor "code --wait"

1 Like