【问题标题】:GIT / RubyMine (Leopard) - can't pull but I can commit and pushGIT / RubyMine (Leopard) - 不能拉,但我可以提交和推送
【发布时间】:2011-04-16 02:36:26
【问题描述】:

我遇到了奇怪的问题

我的系统是 Snow Leopard (10.6.4) - 我无法从我的 RubyMine 中进行拉取,但我可以提交和推送。最好的是,当我运行终端并输入“git pull”时,它工作正常。

在 ruby​​ mine 控制台中有一些错误:

/usr/local/git/libexec/git-core/git-sh-setup: line 71: basename: command not found
/usr/local/git/libexec/git-core/git-sh-setup: line 71: sed: command not found
/usr/local/git/libexec/git-core/git-sh-setup: line 202: uname: command not found
From git.xxx.xxx
 * branch            yly        -> FETCH_HEAD
/usr/local/git/libexec/git-core/git-pull: line 251: sed: command not found
/usr/local/git/libexec/git-core/git-pull: line 251: tr: command not found
There are no candidates for merging among the refs that you just fetched.
Generally this means that you provided a wildcard refspec which had no
matches on the remote end.

我不知道如何解决这个愚蠢的问题。有任何想法吗?感谢您的帮助

【问题讨论】:

  • 如果您提供有关您的分支和遥控器的更多信息,也许会更容易。

标签: ruby-on-rails git macos git-pull rubymine


【解决方案1】:

谢谢大佬!这是环境变量的问题。这是解决方案:

http://devnet.jetbrains.net/docs/DOC-1160

【讨论】:

    【解决方案2】:

    显然您的 ruby​​mine 控制台中缺少环境变量,因此它无法找到那些可执行文件(sed、uname 等)。

    【讨论】:

      猜你喜欢
      • 2021-11-29
      • 2021-06-28
      • 2014-04-23
      • 1970-01-01
      • 2016-11-13
      • 2017-12-21
      • 1970-01-01
      • 2019-10-06
      • 2017-11-23
      相关资源
      最近更新 更多