希望你做的很好,我是新的git,并一直遵循“完整的指南到Git”的课程,关于udemy。问题是,我想将github的存储库克隆到我的pc上的一个目录中,当我这样做时,
然后我收到一条消息,上面写着:您可以检查用'git状态‘签出的内容,然后用'git还原-source=HEAD :/’重试。
我输入的命令是: git克隆https://github.com/leachim6/hello-world.git,而下面的命令是:
Cloning into 'hello-world'...
remote: Enumerating objects: 6554, done.
remote: Counting objects: 100% (909/909), done.
remote: Compressing objects: 100% (486/486), done.
Receiremote: Total 6554 (delta 505), reused 727 (delta 375), pack-reused 5645
Receiving objects: 100% (6554/6554), 2.93 MiB | 2.12 MiB/s, done.
Resolving deltas: 100% (3275/3275), done.
error: invalid path '#/():;#?!'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'如果有人知道如何纠正这些错误,请随时给我建议和建议,(欢迎任何建议)。
提前谢谢你!
发布于 2021-09-17 09:37:55
存储库包含一些奇怪的文件名。它看起来像你的操作系统(Windows?)不喜欢那些文件名。所以,你不能检查那些特定的文件。
储存库仍然是克隆的。你可以按照给出的指示去看你拥有的东西和你错过的东西。特别是,您仍然可以查看具有“好”名称的文件文件。
https://stackoverflow.com/questions/69220694
复制相似问题