windows - 无法从 github 克隆 git 存储库

标签 windows git github clone

我正在尝试将 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/

相关文章:

windows - 我怎样才能强制 Aero 绘制一个无边框窗口,就好像它处于事件状态一样,即使它不是?

在 Windows 中将 __int64 转换为 long

git - 如何从 git diff --no-index 中排除文件和目录

wordpress - 找不到与我的 GOOGLE APP 引擎应用程序关联的任何远程存储库

github - 在 Google Cloud Build yaml 中克隆私有(private) GitHub 存储库

c++ - 独占打开文件/锁定文件

c++ - 如何在安装驱动程序之前用 C++ 获取 GPU 信息

git - 为单个站点上的 magento 模块开发创建每个模块的 git repo 环境

git - 无法将提交推送到 fork 的 repo

git - 将项目从计算机导入到 GitHub 存储库