如何绕过或修复此git clone错误?

时间:2019-07-03 15:09:51

标签: javascript git github visual-studio-code

试图将存储库克隆到另一台本地计算机,但是它在特定位置(文件夹)始终失败。

我想将我在另一台机器(Linux)上正在使用的远程存储库克隆到Windows机器(双引导)中,因为我在Linux中遇到了一些麦克风问题,并且编码挑战是语音对文本。我已经尝试了一次又一次,但是它在我名为“第13天”的文件夹中始终失败

git clone“ 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'

1 个答案:

答案 0 :(得分:4)

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

对于您而言,:需要从文件名中删除,并且应该可以正常工作。