我正在尝试将github存储库克隆到本地windows计算机url:https://github.com/Patrick-The-Star/codility-lessons.git。但我得到的结果是:

Cloning into 'codility-lessons'...
remote: Counting objects: 349, done.
emote: Total 349 (delta 0), reused 0 (delta 0), pack-reused 349
Receiving objects: 100% (349/349), 2.38 MiB | 1.09 MiB/s, done.
Resolving deltas: 100% (115/115), done.
Checking connectivity... done.
fatal: cannot create directory at 'lesson 1 : Time Complexity': 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课:时间复杂性”中有空格,我不确定。不管怎样,我该怎么解决这个问题?

最佳答案

how do I clone files with colons in the filename
基本上你不能在windows上克隆这个存储库。您需要更改文件夹的名称或使用允许文件名中冒号的操作系统,即不使用Windows
编辑:我分叉存储库并将冒号改为破折号。你应该可以克隆这个:https://github.com/prettyClouds/codility-lessons

08-26 22:20