问题
When I type the git commit command to commit my file, I get this error message:
Microsoft Visual Studio: Microsoft: command not found
error: there was a problem with the core editor 'Microsoft Visual Studio'.
Please supply the message using either -m or -F option.
回答1:
Check you git config core.editor
value.
It might refer to a path with spaces in it, without quotes.
Make sure to use simple quotes when registering that editor path:
(And double quotes around the all command expression registered.
And '/
' instead of '\
' for the path separator)
git config core.editor "'C:/path/with spaces/xxx.exe' -<someoptions>"
That what was done when using, for instance, Visual Studio Code as a git editor.
来源:https://stackoverflow.com/questions/32547405/git-commit-fails-please-supply-the-message-using-either-m-or-f-option