首页 > 解决方案 > 无法从远程存储库读取并且似乎不是 git 存储库错误

问题描述

我没有使用 Git 的经验。我必须将我可以从 K: 驱动器访问的共享文件夹克隆到我的本地驱动器 C:

但是,每当我在 Git CMD 中转到 C:\GitRepository 并写下:git clone K:\GitRepository\Code我收到此错误:

fatal: 'K:\GitRepository\Code' 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

该存储库存在,我所有的同事都能够将其克隆到他们的 C 驱动器中。我知道这个问题在这里被问了很多,但我已经尝试了所有建议的解决方案,但我仍然遇到同样的问题。

标签: gitgit-clone

解决方案


您必须删除K:\GitRepository\Code并将其替换为您的 URL 远程存储库。完整的命令是这样的:

cd K:\GitRepository\Code
git clone yourUrlDirection

推荐阅读