试图克隆一个 git repo 它卡在克隆中 [英] Trying to clone a git repo it stuck at cloning into

查看:93
本文介绍了试图克隆一个 git repo 它卡在克隆中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 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 '.' 永远.

I am using Windows 10 Ver 10.0.19042 Build 19042 , GIT Ver 2.32 when trying to execute the following command using git bash git clone --depth=1 -b carla https://github.com/CarlaUnreal/UnrealEngine.git . to clone the carla project it stucks displaying the message cloning into '.' forever.

有时它会产生输出错误:错误写入标准输出":管道损坏我尝试了以下解决方案

sometimes it yields output Error: error writing "stdout": broken pipe I Have tried the following solutions

  • 用 HTTP 替换 HTTPS
  • 我已经为 Windows 安装了 Open SSH

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

Also, note that I have copied other repos from git using the command git clone <git_repo> and it works fine

我想毫无问题地克隆 repo 有什么帮助吗?

I want to clone the repo with no issues any help ?

推荐答案

我刚刚测试了相同的命令(Git 2.32 也适用于 Windows 10)

I just tested the same command (Git 2.32 on Windows 10 as well)

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

The --depth=1 syntax does work well, both in CMD and git bash.

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

If you want to test with SSH, you will have to do:

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

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

(assuming you have a public key registered to your profile, considering this is a private repository)

这篇关于试图克隆一个 git repo 它卡在克隆中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆