EDIT: I tested setting up VS Code as the editor with git config --global core.editor "code --wait" and ended up with the same problem as the OP. I then tried the full path to the program with the double and single quotes, as described earlier, and now it worked: git config --global core.editor '"c:\\Users\\Ian\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe"'