Windows上的Git - 无法从UNC路径

时间:2016-10-13 14:10:44

标签: git

我以为我可以从UNC路径克隆,唉没有。

D:\Git>git clone \\M0218\Git\SomeProject
Cloning into 'SomeProject'...
fatal: '\M0218\Git\SomeProject' 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.

我做错了什么?

1 个答案:

答案 0 :(得分:1)

您需要使用正斜杠/

git clone //M0218/Git/SomeProject

那就是它。