[英]Git merge error: cannot run Sublime_Text_2: No such file or directory
I'm on my hot fix branch, and I just did git add ., and git commit -m "added well style" 我在我的热修复分支上,我只是做了git add。,并且git commit -m“添加了很好的风格”
Then I did: 然后我做了:
johns-mbp:blackjack johncurry$ git checkout master
Switched to branch 'master'
johns-mbp:blackjack johncurry$ git merge hotfix
Auto-merging views/stay.erb
error: cannot run Sublime_Text_2: No such file or directory
error: unable to start editor 'Sublime_Text_2'
Not committing merge; use 'git commit' to complete the merge.
johns-mbp:blackjack johncurry$ git commit -m "added well style"
[master 91c3bfd] added well style
Then I pushed to github on my master branch and everything worked as if it merged successfully, and on github I even have the updates i did to the hot fix branch and merged exactly like I want. 然后我推送到我的主分支上的github,一切正常,就好像它成功合并,并且在github上我甚至对热修复分支进行了更新,并且完全按照我想要的方式合并。 The following part is alarming to me though, what is up with this and how do I get rid of it? 以下部分对我来说是惊人的,这是怎么回事?如何摆脱它?
error: cannot run Sublime_Text_2: No such file or directory
error: unable to start editor 'Sublime_Text_2'
Not committing merge; use 'git commit' to complete the merge.
You have probably set your core.editor
configuration variable (or else the environment variable GIT_EDITOR
) to Sublime_Text_2
. 您可能已将core.editor
配置变量(或环境变量GIT_EDITOR
)设置为Sublime_Text_2
。 It should be set to subl -w
or subl -n -w
(depending on whether you want Sublime to open a new window or not). 它应该设置为subl -w
或subl -n -w
(取决于你是否希望Sublime打开一个新窗口)。 subl
is the command-line tool that comes with Sublime Text. subl
是Sublime Text附带的命令行工具。
The relevant part of my global .gitconfig
file looks like this: 我的全局.gitconfig
文件的相关部分如下所示:
[core]
editor = subl -n -w
See http://www.sublimetext.com/docs/2/osx_command_line.html for information on setting up subl
. 有关设置subl
信息,请参见http://www.sublimetext.com/docs/2/osx_command_line.html 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.