【问题标题】:How do I bypass or repair this git clone error?如何绕过或修复此 git clone 错误?
【发布时间】:2019-11-14 07:46:45
【问题描述】:

尝试将 repo 克隆到另一台本地计算机,但在特定点(文件夹)总是失败。

我想将我一直在我的另一台机器 (Linux) 上处理的远程 repo 克隆到我的 windows 机器(我双启动)中,因为我在 linux 中遇到了一些麦克风问题,并且编码挑战是语音到文本。我一次又一次地尝试,但它总是在我标题为“第 13 天”的文件夹中失败

git 克隆“https://github.com/stealthman22/My-JavaScript30-Challenge.git

与往常一样,我希望顺利克隆,这样我就可以开始工作了,但这是我不断得到的结果

C:\Users\user\Documents>git clone "https://github.com/stealthman22/My-JavaScript30-Challenge.git"

Cloning into 'My-JavaScript30-Challenge'...
remote: Enumerating objects: 157, done.
remote: Counting objects: 100% (157/157), done.
remote: Compressing objects: 100% (140/140), done. Receiving objects: 
68% (107/remote: Total 157 (delta 36), reused 132 (delta 14), pack-reused
Receiving objects:  71% (112/157), 45.15 MiB | 118.00 KiB/s
Receiving objects: 100% (157/157), 45.16 MiB | 69.00 KiB/s, done.
Resolving deltas: 100% (36/36), done. fatal: cannot create directory
  at 'Day 13: Slide in on scroll': Invalid argument
warning: Clone succeeded, but checkout failed.
  You can inspect what was checked out with 'git status'
  and retry the checkout with 'git checkout -f HEAD'

【问题讨论】:

标签: javascript git github visual-studio-code


【解决方案1】:

Windows 不允许在文件名中使用 :\,因为它们是 Windows 的保留关键字。

在您的情况下,: 需要从文件名中删除,它应该可以正常工作。

【讨论】:

  • 非常感谢我从来不知道这样的东西,但是我们每天都在学习。我应该提防任何其他特殊字符吗?
猜你喜欢
  • 1970-01-01
  • 2019-03-12
  • 2013-10-03
  • 1970-01-01
  • 2020-02-22
  • 2014-03-01
  • 2012-07-09
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多