首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用CopSSH和MSysGit从Windows克隆git存储库

使用CopSSH和MSysGit从Windows克隆git存储库
EN

Stack Overflow用户
提问于 2011-12-04 15:17:01
回答 1查看 761关注 0票数 4

在运行Windows 2003 Server的计算机上设置Git服务器时遇到问题。

我在服务器上安装了CopSSH,可以成功地通过SSH连接到服务器。然后,我在服务器上安装了MSysGit (只是编译后的可执行文件)。最后,我在Git shell中使用ln -s在CopSSH的bin目录中创建了指向Git可执行文件(来自MSysGit的bin)的链接。

我可以成功地连接到服务器并使用Git over SSH:

代码语言:javascript
复制
$ ssh git@<server>
git@<server>'s password:
Last login: Sun Dec   4 10:10:08 from <computer>

git@<server> ~
$ cd /cygdrive/c/gitRepos/

git@<server> /cygdrive/c/gitRepos/
$ mkdir test.git

git@<server> /cygdrive/c/gitRepos/
$ cd test.git

git@<server> /cygdrive/c/gitRepos/test.git
$ git init --bare
Initialized empty Git repository in C:/gitRepos/test.git/

git@<server> /cygdrive/c/gitRepos/test.git
$ exit
logout
Connection to <server> closed

但是,当我尝试从服务器克隆时,它不起作用:

代码语言:javascript
复制
$ git clone ssh://git@<server>:22/cygdrive/c/gitRepos/test.git
Cloning into test...
git@<server>'s password:
fatal: The remote end hung up unexpectedly

我怎么才能让它工作呢?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-12-05 19:59:23

请看一下这个answer。也许你也有同样的问题?

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8373902

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档