【问题标题】:Trying to clone a git repo it stuck at cloning into试图克隆一个 git repo 它卡在克隆到
【发布时间】:2021-12-19 02:56:37
【问题描述】:

我使用的是 Windows 10 Ver 10.0.19042 Build 19042 , GIT 版本 2.32 尝试使用 git bash 执行以下命令时 git clone --depth=1 -b carla https://github.com/CarlaUnreal/UnrealEngine.git . 克隆 carla 项目,它卡住永远显示消息 cloning into '.'

有时它会产生输出 Error: error writing "stdout": broken pipe 我尝试了以下解决方案

  • 将 HTTPS 替换为 HTTP
  • 我已经为 windows 安装了 Open SSH

另外,请注意,我已经使用命令 git clone <git_repo> 从 git 复制了其他 repos,它工作正常

我想毫无问题地克隆 repo 有任何帮助吗?

【问题讨论】:

标签: git http github ssh carla


【解决方案1】:

我刚刚测试了相同的命令(Windows 10 上的 Git 2.32 也是如此)

--depth=1 语法在 CMD 和 git bash 中运行良好。

如果您想使用 SSH 进行测试,您必须这样做:

git clone --depth=1 -b carla git@github.com/CarlaUnreal/UnrealEngine.git .

(假设您在个人资料中注册了一个公钥,考虑到这是一个私有存储库)

【讨论】:

    猜你喜欢
    • 2013-08-07
    • 1970-01-01
    • 1970-01-01
    • 2022-11-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多