gpt4 book ai didi

javascript - 如何绕过或修复此 git clone 错误?

转载 作者:行者123 更新时间:2023-11-30 09:13:26 25 4
gpt4 key购买 nike

尝试将存储库克隆到另一台本地计算机,但在特定点(文件夹)一直失败。

我想将我一直在另一台机器 (Linux) 上工作的远程存储库克隆到我的 Windows 机器(我双启动)中,因为我在 Linux 中遇到了一些麦克风问题,编码挑战是语音到文本。我试了一次又一次,但在我命名为“第 13 天”的文件夹中它一直失败

git 克隆“https://github.com/stealthman22/My-JavaScript30-Challenge.git

一如既往,我期待顺利克隆,这样我就可以开始工作了,但这是我不断得到的结果

C:\Users\user\Documents>git clone "https://github.com/stealthman22/My-JavaScript30-Challenge.git "

Cloning into 'My-JavaScript30-Challenge'...
remote: Enumerating objects: 157, done.
remote: Counting objects: 100% (157/157), done.
remote: Compressing objects: 100% (140/140), done. Receiving objects:
68% (107/remote: Total 157 (delta 36), reused 132 (delta 14), pack-reused
Receiving objects: 71% (112/157), 45.15 MiB | 118.00 KiB/s
Receiving objects: 100% (157/157), 45.16 MiB | 69.00 KiB/s, done.
Resolving deltas: 100% (36/36), done. fatal: cannot create directory
at 'Day 13: Slide in on scroll': 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'

最佳答案

Windows 不允许在文件名中使用 :\,因为它们是 windows 的保留关键字。

在您的情况下,: 需要从文件名中删除,它应该可以正常工作。

关于javascript - 如何绕过或修复此 git clone 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56873176/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com