为什么 git 从远程计算机克隆说它不是 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 distribution does not have a /Documents

(参见例如“The directory Tree”)

尝试使用 non-bare 存储库的完整路径 (check it with pwd -P):

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