我正在尝试将 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
编辑:我 fork 了存储库并将冒号更改为破折号。你应该能够克隆这个:https://github.com/prettyClouds/codility-lessons
关于windows - 无法从 github 克隆 git 存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41148490/