On 2023-10-27 at 07:31:32, John wrote: > I have been using Sublime Text 3 as the editor on Git for Windows for years, on Windows 10. I recently purchased a Windows 11 machine. On that machine, when I give GFW the following command, I get the response shown: > > $ git commit -a > […] > hint: Waiting for your editor to close the file… C:\Program Files\Sublime Text 3\sublime_text.exe: C:Program: command not found > error: There was a problem with the editor ‘C:\Program Files\Sublime Text 3\sublime_text.exe’. > Please supply the message using either -m or -F option. I think the "command not found" indicates that you may have specified your editor incorrectly. In Git Bash, can you try the following commands, one at a time, and then commit between each one to see if one of them works? git config --global core.editor '"C:/Program Files/Sublime Text 3/sublime_text.exe"' git config --global core.editor '"C:\Program Files\Sublime Text 3\sublime_text.exe"' I believe that both should work here. My guess is that this is the situation hinted at in the FAQ[0], where, because the editor is passed to the shell (bash), you need to use double quotes to prevent it from thinking that you have a program named "C:\Program" with arguments "Files\Sublime", "Text", and "3\sublime_text.exe". Hopefully this works; if not, please let us know, and hopefully someone on the list who uses Windows can provide some help. I'm afraid that, as a Linux user, I'm not able to provide more than a guess here. [0] https://git-scm.com/docs/gitfaq#configure-editor -- brian m. carlson (he/him or they/them) Toronto, Ontario, CA
Attachment:
signature.asc
Description: PGP signature