2017-02-02 35 views
0

我試圖在服務器PC在d文件夾製作一個版本庫的克隆命名庫,使得路徑無法使用bitvise SSH

D:/Repository

克隆從服務器PC到遠程PC的存儲庫,然後我通過做右鍵單擊並選擇git bash並執行以下命令做回購

git init

現在這將使存儲庫。

我使用Bitvise SSH從遠程PC進行連接。 當我嘗試下面的命令:

git clone ssh://[email protected]:/~/d/Repository/.git

將打印此錯誤:

fatal: '~/d/Repository/.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.

我已經設置環境變量關於git的路徑。

還有其他建議嗎?

在此先感謝

回答

0

你似乎誤解了Windows文件系統和基於UNIX的文件系統佈局。我不確定D:/是什麼,但應該是D:\。繼續,〜/表示您的主目錄(您的用戶名)在unix上,但您指定的路徑似乎沒有提及任何有關主目錄的內容。你在unix或linux機器上?確保您的git克隆路徑指向機器上的正確位置。此外,它好像你想要一個像ssh://[email protected]:<path>/myrepository.git,不ssh://[email protected]:<path>/myrepository/myrepository.git路徑,根據就像你提到的上面的鏈接https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server

+0

一個例子是d:/目錄只在我的情況。 –

+0

好像你忽略了我的帖子的重要細節 – jbu

+0

也試過這個!不工作,同樣的錯誤 –