当前位置: 代码迷 >> 综合 >> git commit 与sublime text 2 连接错误
  详细解决方案

git commit 与sublime text 2 连接错误

热度:34   发布时间:2023-12-10 18:19:19.0
错误信息:hint: Waiting for your editor to close the file... 'D:/Program\ Files\ \(x86\)/S                  ublime\ Text\ 2/sublime_text.exe' -n -w: D:/Program\ Files\ \(x86\)/Sublime\ Tex                  t\ 2/sublime_text.exe: No such file or directory
error: There was a problem with the editor ''D:/Program\ Files\ \(x86\)/Sublime\                   Text\ 2/sublime_text.exe' -n -w'.

Please supply the message using either -m or -F option.

错误原因:视频错误,单引号之间不用加转译字符,双引号中添加转译字符

代码: git config --global core.editor "'D:/Program Files (x86)/Sublime Text 2/sublime_text.exe' -w -n"

        alias subl="D:/Program\ Files\ \(x86\)/Sublime\ Text\ 2/sublime_text.exe' -w -n"

注意:发现问题先阅读错误信息,不要着急去百度,如果阅读错误信息修改失败,在从头看教程,还不行就去StackOverflow。

  相关解决方案