Git无法在Windows cmd中签出代码

时间:2018-04-10 10:42:18

标签: windows git github git-clone git-checkout

所以我试图在Windows CMD中进行git克隆。但我最终得到了以下错误。我尝试了每一项工作。但没有运气。

Cloning into 'tomato-api'...
remote: Counting objects: 67887, done.
remote: Total 17346 (delta 0), reused 0 (delta 0), pack-reused 17346
Receiving objects: 100% (67887/67887), 643.56 MiB | 742.00 KiB/s, done.
Resolving deltas: 100% (7654/7654), done.
fatal: cannot create directory at 'vegitables/market/github.com/docker/distribution/sharing/united-streets/generated_certs.d/localregistry:5440': 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 :(得分:0)

您尝试克隆的git存储库有一个路径,其路径由Windows保留字 - 冒号(enabled_capability: %w( basic-lti-launch-request User.id Canvas.api.domain LtiLink.custom.url User.username Person.email.primary Person.name.full CourseSection.sourcedId Canvas.course.sectionIds Person.sourcedId Membership.role ToolConsumerProfile.url) } )组成。因此,无法创建该目录。