Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sublimetext3 Git Commit--修改导致Sublime文本3中的编辑器错误_Sublimetext3 - Fatal编程技术网

Sublimetext3 Git Commit--修改导致Sublime文本3中的编辑器错误

Sublimetext3 Git Commit--修改导致Sublime文本3中的编辑器错误,sublimetext3,Sublimetext3,运行: git commit --amend hint: Waiting for your editor to close the file... 'c:/program files/sublime text 3/subl.exe' -w: c:/program files/sublime text 3/subl.exe: No such file or directory error: There was a problem with the editor ''c:/program file

运行:

git commit --amend
hint: Waiting for your editor to close the file... 'c:/program files/sublime text 3/subl.exe' -w: c:/program files/sublime text 3/subl.exe: No such file or directory
error: There was a problem with the editor ''c:/program files/sublime text 3/subl.exe' -w'.
Please supply the message using either -m or -F option.
导致此错误消息的原因:

hint: Waiting for your editor to close the file... 'c:/program files/sublime text 3/subl.exe' -w: c:/program files/sublime text 3/subl.exe: No such file or directory
error: There was a problem with the editor ''c:/program files/sublime text 3/subl.exe' -w'.
Please supply the message using either -m or -F option.

有人能解释一下这意味着什么以及如何处理吗?

git正在寻找一个文本编辑器,在本例中是Sublime,用于打开提交消息,以便您可以对其进行编辑。但是配置有问题。升华酒店开门了吗?如果是这样,您需要在完成编辑后保存并关闭它。如果不存在,是否存在c:/program files/sublime text 3/subl.exe?其他可能有帮助的步骤是运行git config--list和echo$EDITOR来查看配置git正在寻找文本编辑器(在本例中为Sublime)来打开提交消息,以便您可以对其进行编辑。但是配置有问题。升华酒店开门了吗?如果是这样,您需要在完成编辑后保存并关闭它。如果不存在,是否存在c:/program files/sublime text 3/subl.exe?其他可能有帮助的步骤是运行git config--list和echo$EDITOR以查看您的配置
hint: Waiting for your editor to close the file... 'c:/program files/sublime text 3/subl.exe' -w: c:/program files/sublime text 3/subl.exe: No such file or directory
error: There was a problem with the editor ''c:/program files/sublime text 3/subl.exe' -w'.
Please supply the message using either -m or -F option.