use vscode as git editor on Windows -n = --new-window -w = --wait from cmd.exe use double quotes git config --global core.editor "code --wait" git config --global core.editor "code -w" git config --global core.editor 'code --wait' resutls in [core] editor = 'code