【问题标题】:Git rebase error: This application will not run on your computerGit rebase 错误:此应用程序将无法在您的计算机上运行
【发布时间】:2013-11-16 08:27:15
【问题描述】:

我正在尝试使用

更改我的提交消息

git rebase -i HEAD~2

但是当我这样做时,我得到了一个带有消息This application will not run on your computer. Sorry!的窗口

在终端我有:

/System/Library/Frameworks/Ruby.framework/Versions/2.0/
 usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb:212: 
 warning: Insecure world writable dir /Volumes/SSS/Work in PATH, mode 040777
button returned:OK
Successfully rebased and updated refs/heads/master.

我有 OSX 10.9。它有什么问题?


更多信息:

  1. git 版本 1.7.11.3

  2. 我不应该有钩子。但可能是我错过了什么。 (我检查了~/.gitconfig)

  3. 当我将 core.editor 从 emacs 更改为 nano 时,错误消失了。所以问题似乎与emacs有关。

【问题讨论】:

  • 由于您使用的是rebase -i,也许是您配置的编辑器导致了问题? git config --get core.editor 返回什么?
  • @robertklep,我更新了我的答案。
  • 它与 Emacs 有关,请参阅 this piece of code 其中包含您遇到的错误。不知道如何解决这个问题,不是 Emacs 也不是 Ruby 专家 :)
  • 是的。我改成了 nano,这很有帮助。
  • 哦,我现在明白了,那是一些产生错误的 Ruby 脚本。我之前的评论的意思是,使用magit 时您仍将处于终端中,不必是其中一个。

标签: macos git emacs rebase


【解决方案1】:

问题是我为 MacOS 的 Emacs 使用别名 emacs。通过更改解决了:

编辑器 = emacs -nw

编辑器 = Emacs -nw

~/.gitconfig

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-22
    • 2013-08-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多