2017-02-19 137 views
0

使用copssh,我建立了我自己的git服務器,其操作系統是windows 2012.
我創建了一個git存儲庫。
The git repository directorygit克隆問題與copssh

正如你可以在圖片中看到,有一個名爲「vacationsabroad.git」

在本地PC一個git倉庫,我要克隆這個倉庫。 所以我使用下面的命令。

git clone [email protected]:/cygdrive/c/cossh/home/admin/git/vacationsabroad.git 

但我已經得到了致命的錯誤:

fatal: '/cygdrive/c/cossh/home/admin/git/vacationsabroad.git' does not appear to be a git repository fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

Error window

我怎麼能解決這個問題?

回答

0

當使用copssh和git服務器時,可能需要使用以下命令。

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

所以你的命令可能是這樣的。

git clone [email protected]:c:/cossh/home/admin/git/vacationsabroad.git 

希望它能幫助你。如果它不起作用,請讓我知道。

+0

如果你的路徑中有空格,也不要忘記加引號。 – Stavm

+0

謝謝,它適合我。 – user7553103