簡體   English   中英

為什么來自遠程計算機的git clone說它不是git存儲庫?

[英]Why git clone from remote machine says it is not a git repository?

在遠程計算機( ubuntu 12.04 )上,我在repo文件夾中以及使用的文件夾內創建了一個test/文件夾:

git init

test文件夾中運行命令ll會告訴我test里面有.git文件夾。
現在,我想使用以下方法從我自己的計算機( ubuntu 12.04 )上從該計算機遠程克隆:

git clone ssh://rahil-p001@172.16.35.117/Documents/repos/test

但是我收到以下錯誤:

Cloning into 'test'...
rahil-p001@172.16.35.117's password: //I enter password then...
fatal: '/Documents/repos/test' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

我對使用git很陌生,無法想到它不起作用的任何原因。
您將如何解釋該錯誤消息?

正常的Ubuntu發行版沒有/Documents可以解釋這一點

http://1.bp.blogspot.com/-vuqCDlnP_Rc/TfLv5Ql6YmI/AAAAAAAAAKE/g8oVglafrVY/s640/directory.jpg

(例如參見“ 目錄樹 ”)

嘗試改用非裸倉庫的完整路徑( pwd -P檢查 ):

git clone ssh://rahil-p001@172.16.35.117/home/rahil-p/Documents/repos/test

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM