git - 无法从远程存储库读取并且似乎不是 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 驱动器中。我知道这个问题在这里被问了很多,但我已经尝试了所有建议的解决方案,但我仍然遇到同样的问题。
解决方案
您必须删除K:\GitRepository\Code并将其替换为您的 URL 远程存储库。完整的命令是这样的:
cd K:\GitRepository\Code
git clone yourUrlDirection
推荐阅读
- latex - 我怎么能找到为什么我相同的乳胶代码会产生不同的结果?
- azure - 如何使用逻辑应用将事件从 azure 事件中心传输到 azure blob 存储?
- python-3.x - 我在传递参数时做错了什么?
- python - 如何从python中的字典中获取后续键?
- c - 为什么在以下情况下使用赋值运算符而不是等于运算符?
- java - 弹性4j重试改造
- tortoisegit - Tortoisegit Windows Shell 覆盖错误
- php - 无法执行 Laravel-Blade 文件
- hyperlink - 如何根据项目在 Y 轴上定位元素 [SAPUI5]
- java - 我无法在我的代码中打印出字母?如果我从圆括号中删除 0 代码将不会运行