【问题标题】:Gitolite on Windows - cloning stuckWindows 上的 Gitolite - 克隆卡住
【发布时间】:2014-09-01 18:51:07
【问题描述】:

我已经使用 cygwin 在 windows 服务器上安装了 gitolite,安装步骤没有问题,当我尝试从本地机器(windows)“ssh gitadmin@gitserver info”时,我得到了正确的响应: hello gitoliteAdmin, this is gitadmin@VRGWLSDEV1T running gitolite3 v3.6.1-6-gdc 8b590 on git 1.9.4.msysgit.0 R W gitolite-admin R W testing

如果我尝试使用 Git Bash 进行克隆,则会出现错误: $ git clone gitadmin@gitserver:gitolite-admin Cloning into 'gitolite-admin'... git: 'shell' is not a git command. See 'git --help'. Did you mean this? help fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

如果我尝试在本地 mashine 上使用 cygwin 终端进行克隆(使用相同的 ssh 密钥并获得相同的有效 gitolite 消息),它会返回: $ git clone gitadmin@gitserver:gitolite-admin.git Cloning into 'gitolite-admin'... ...并且为了娱乐而保持这种状态!

我已经搜索了多个解决方案,将 PATH(使用 Git 等)添加到 gitolite 指定服务器上的 .bashrc 和 .bash_profile 文件。还将 PATH 添加到 .gitolite.rc 以包含自定义 Git 安装路径(在此之前我没有收到 gitolite 消息)

如果您有任何解决方案或想法我做错了什么:请....帮助。

【问题讨论】:

    标签: windows git ssh cygwin gitolite


    【解决方案1】:

    自己解决了:

    Mysis Git 安装让 Cygwin 感到困惑。将 Git 包添加到 Cygwin 并删除了 Msys Git 环境。变量:现在一切正常。

    【讨论】:

      猜你喜欢
      • 2012-10-15
      • 2013-04-16
      • 2011-06-29
      • 1970-01-01
      • 2013-07-01
      • 2011-09-16
      • 1970-01-01
      • 2011-12-24
      • 1970-01-01
      相关资源
      最近更新 更多