On Fri, Oct 27, 2023 at 02:31:32PM +0700, 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. > > Does anyone know of a fix? To repeat, it’s only a problem on Windows 11. What if you change the contents of the GIT_EDITOR (or EDITOR - whichever is set) environment variable to contain forward slashes? That is, for the pathname to read "C:/Program Files/..."? If that does not work, what if you replace "C:/" with "/c/" - that is, for the pathname to read "/c/Program files/..."? Please note that depending on where this variable is set (in the "System" block of setting or "User") you might need to reboot or relogin, correspondingly in order for the setting to be applied to your environment. Also please check the core.editor configuration setting - it might be set, and then you should try to modify it instead [3]. While we're at it, such issues are better discussed on the dedicated mailing list for GfW [1]. Also check the project's issue tracker [2]. 1. https://groups.google.com/g/git-for-windows/ 2. https://github.com/git-for-windows/git/issues/ 3. https://github.com/git-for-windows/git/issues/782