简体   繁体   English

Git合并错误:无法运行Sublime_Text_2:没有这样的文件或目录

[英]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 -wsubl -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.

相关问题 Mac 上的 Git Hub 桌面,错误:无法运行 gpg:没有这样的文件或目录 - Git Hub Desktop on Mac, error: cannot run gpg: No such file or directory 无法运行程序“...”错误= 2,没有这样的文件或目录(java) - Cannot run program “…” error=2, No such file or directory (java) 如何以崇高的文本(Mac)从 git 存储库打开文件? - How to open file from git repository in sublime text (Mac)? Mac上的Sublime Text错误 - Sublime Text on Mac error ant jar错误:执行失败:java.io.IOException:无法运行程序... $ {aapt}“:error = 2,没有这样的文件或目录 - ant jar error: Execute failed: java.io.IOException: Cannot run program…${aapt}": error=2, No such file or directory 通过SSH到VM打开Sublime Text文件,错误 - Opening file with Sublime Text via SSH to VM, error 我在OS X Mavericks上运行mvn时出现以下错误:无法运行程序“/ bin / sh”:error = 2,没有这样的文件或目录 - I am getting the following error when I run mvn on OS X Mavericks: Cannot run program “/bin/sh”: error=2, No such file or directory 无法运行程序“ START”:错误= 2,尝试在MAC中终止Chrome进程时没有此类文件或目录 - Cannot run program “START”: error=2, No such file or directory while trying to kill Chrome process in MAC 在Mac Terminal Sublime Text文件中编译并运行 - Compile and run in Mac Terminal Sublime Text files 如何在 macOS 上的 Sublime Text 3 上运行 C#? - How to Run C# on Sublime Text 3 on macOS?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM