[英]Git clone from remote ssh repository - change the machine on the remote network before executing the clone command
[英]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
可以解釋這一點
(例如參見“ 目錄樹 ”)
嘗試改用非裸倉庫的完整路徑( 用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.