【问题标题】:not able to clone repos from gitlab as the commanf git clone has been stuck无法从 gitlab 克隆 repos,因为命令 git clone 已被卡住
【发布时间】:2021-09-03 14:15:21
【问题描述】:

我运行了以下命令来克隆 git:

git clone git@gitlab.xxxx.xxx:xxxxxxx/xxxx/anxxxx-xxx.git

Cloning into 'xxx-xxxx'...
remote: Enumerating objects: 80, done.
remote: Counting objects:  31% (25/80)

这只是无限期地停留在这个阶段。我正在使用 ubuntu 16 作为 WSL。

它以前工作过,但今天我从我的机器上删除了本地 repo,并试图再次克隆它,但挂了。您有什么想法或问题请告诉我。

谢谢

【问题讨论】:

    标签: git github gitlab


    【解决方案1】:

    尝试克隆一个小型存储库,看看问题是否仍然存在。

    可能是~/.ssh/config 设置问题as in here

    对于大型存储库,shallow cone 优先(意味着没有完整的历史记录)可能会有所帮助。

    【讨论】:

      猜你喜欢
      • 2019-09-16
      • 2021-10-12
      • 2021-09-01
      • 1970-01-01
      • 2020-04-18
      • 2023-03-10
      • 2013-11-27
      • 1970-01-01
      • 2016-11-15
      相关资源
      最近更新 更多