【问题标题】:Git on Windows - Cannot clone from UNC path [duplicate]Windows 上的 Git - 无法从 UNC 路径克隆 [重复]
【发布时间】:2016-10-13 22:10:43
【问题描述】:

我以为我可以从 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.

我做错了什么?

【问题讨论】:

  • 呃;我认为关闭需要 5 票。这当然感觉像是其他几个问题的重复,但我认为这个问题很有说服力,因为它是最直接的提问和回答。如果您认为关闭错误,请大声疾呼(或投票重新开放)。

标签: git


【解决方案1】:

您需要使用正斜杠/

git clone //M0218/Git/SomeProject

就是这样。

【讨论】:

  • 或使用\\\\M0218\...
猜你喜欢
  • 2010-11-05
  • 1970-01-01
  • 2021-10-12
  • 2023-03-10
  • 2011-12-24
  • 2023-04-01
  • 2021-01-28
  • 1970-01-01
  • 2018-11-14
相关资源
最近更新 更多