我一直在尝试从回购拉,我一直得到这个错误,不能弄清楚。任何帮助在正确的方向是感激!
sublime -w: sublime: command not found
error: There was a problem with the editor 'sublime -w'.
Not committing merge; use 'git commit' to complete the merge.
Sublime Text需要与subl
而不是sublime
一起启动,并且需要在PATH
中启动。
您可以通过运行命令which subl
(向您显示计算机上的文件路径)或subl -n
(在Sublime Text中启动一个新窗口)来检查它是否存在。
要修复git
编辑器,可以运行git config --global core.editor "subl"
来源:https://www.sublimetext.com/docs/3/osx_command_line.html
可能Git配置使用sublime
作为编辑器,而它无法找到它。
如果你真的想使用Sublime作为编辑器,检查它是否已经安装并且在你的PATH
中。
或者,您可以使用以下命令更改git使用的编辑器(将vim
替换为您喜欢的编辑器:emacs
, nano
等):
git config --global core.editor "vim"
Edit:在终端中启动Sublime Text的正确命令是subl
(感谢QuantumPhi)