简体   繁体   English

git克隆问题与copssh

[英]git clone issue with copssh

Using copssh,I've set up my own git server whose os is windows 2012. 使用copssh,我设置了自己的git服务器,其操作系统是Windows 2012。
And I've created one git repository. 我已经创建了一个git存储库。
The git repository directory git存储库目录

As you can see in the image, there is one git repository named "vacationsabroad.git" 如您在图像中看到的,有一个名为“ vacationsabroad.git”的git存储库

In my local pc, I'm gonna clone this repository. 在我的本地PC中,我将克隆该存储库。 So I use the following command. 所以我用下面的命令。

 git clone administrator@myserverip:/cygdrive/c/cossh/home/admin/git/vacationsabroad.git

But I've gotten the fatal error: 但是我遇到了致命错误:

fatal: '/cygdrive/c/cossh/home/admin/git/vacationsabroad.git' does not appear to be a git repository fatal: Could not read from remote repository. 致命:'/cygdrive/c/cossh/home/admin/git/vacationsabroad.git'似乎不是git存储库致命:无法从远程存储库读取。

Please make sure you have the correct access rights and the repository exists. 请确保您具有正确的访问权限,并且存储库存在。

Error window 错误窗口

How could I fix this issue? 我该如何解决这个问题?

When using the copssh and git server, maybe you have to use the following command. 使用copssh和git服务器时,也许您必须使用以下命令。

To check out a repository: git clone {username}@{servername}:{repodriveletter}:/{repopath}

So your command could be like this. 所以您的命令可能像这样。

git clone administrator@myserverip:c:/cossh/home/admin/git/vacationsabroad.git

Hope it will help you. 希望对您有帮助。 If it doesn't work, please let me know. 如果不起作用,请告诉我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM