Ruby OpenShift-未找到Git v2.5.0-can';t克隆应用程序git repo

Ruby OpenShift-未找到Git v2.5.0-can';t克隆应用程序git repo,ruby,git,openshift,windows-10,cloning,Ruby,Git,Openshift,Windows 10,Cloning,因此,Git的第一个官方版本(v2.5.0)问世了,作为我的第一个OpenShift项目,我遵循了,并使用了Ruby v2.1.6p336,我遇到了Ruby phc没有找到任何用于克隆应用程序repo的Git的问题 以下是cmd日志: Microsoft Windows [Version 10.0.10240] (c) 2015 Microsoft Corporation. All rights reserved. C:\Users\Nauro>Ruby --version ruby 2

因此,Git的第一个官方版本(v2.5.0)问世了,作为我的第一个OpenShift项目,我遵循了,并使用了Ruby v2.1.6p336,我遇到了Ruby phc没有找到任何用于克隆应用程序repo的Git的问题

以下是cmd日志:

Microsoft Windows [Version 10.0.10240]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\Users\Nauro>Ruby --version
ruby 2.1.6p336 (2015-04-13 revision 50298) [x64-mingw32]

C:\Users\Nauro>Git --version
git version 2.5.0.windows.1

C:\Users\Nauro>rhc --version
DL is deprecated, please use Fiddle
rhc 1.36.4


C:\Users\Nauro>rhc app create python-2.7 -a test
DL is deprecated, please use Fiddle
Application Options
-------------------
Domain:     lab001
Cartridges: python-2.7
Gear Size:  default
Scaling:    no

Creating application 'test' ... done


Waiting for your DNS name to be available ... done

You do not have git installed, so your application's git repo will not be cloned

Your application 'test' is now available.

  URL:        http://test-lab001.rhcloud.com/
  SSH to:     55d4d6952d5271bce7000051@test-lab001.rhcloud.com
  Git remote: ssh://55d4d6952d5271bce7000051@test-lab001.rhcloud.com/~/git/test.git/

Run 'rhc show-app test' for more details about your app.

C:\Users\Nauro>
我不想使用预发行版,也不想让它与这个新版本一起工作(尽管它可能会工作),因为Git不允许我选择旧版本(不像Ruby)

另外,我应该提到,在Git安装过程的官方版本中有两个额外的步骤,教程中没有提到,因为在预发行版中不存在。一个允许您在“使用MinTTY”和“使用Windows的默认控制台窗口”之间进行选择,我在其中尝试了这两个选项,另一个是“启用文件系统缓存”,我从未选中过

设置:

  • Windows 10.0.10240
  • Ruby v2.1.6p336
  • Git v2.5.0(首次正式发布)
  • phc v1.36.4
附言:我刚开始学习Ruby、Git和OpenShift托管,只是用了一个简单的方法,然后就被卡住了,所以除了这些我什么都不知道

答复:
通过保持默认安装路径并选择“使用Windows的默认控制台窗口”,应用程序repo自动克隆成功

rhc命令查找要安装在这些位置的git(以及首先安装在您的路径中的git)

如果RHC::Helpers.windows?

猜测位置rhc命令查找要安装在这些位置的git(以及首先安装在您的路径中)

如果RHC::Helpers.windows?

猜测位置我将git安装路径的目录从“C:\Program Files\git”更改为“Z:\Nauro\Programs\git”。这有区别吗?(这里是临时链接:)啊哈!是的,保留默认路径可以让phc找到git。现在它已经被自动克隆了。非常感谢。我将git安装路径的目录从“C:\Program Files\git”更改为“Z:\Nauro\Programs\git”。这有区别吗?(这里是临时链接:)啊哈!是的,保留默认路径可以让phc找到git。现在它已经被自动克隆了。非常感谢。
if RHC::Helpers.windows?
          guessing_locations << 
            discover_windows_executables do |base|
              [ 
                "git.exe",
                "#{base}\\Git\\bin\\git.exe", 
                "#{base}\\git.exe", 
              ]
            end
        end