Git Clone太慢了 [英] Git Clone is too slow

查看:141
本文介绍了Git Clone太慢了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第一次构建git服务器.当我使用TortoiseGit-1.8.1.0-32bit处理该操作时,一切都很好!

This is my first time to construct the git server. When I use TortoiseGit-1.8.1.0-32bit to handle the operation, everything is fine!

但是,如果我使用git clone命令或git bash,则git clone的处理速度非常慢.我附加了两个图像,分别显示下面的相对git clone传输速度.

But if i use the git clone command or git bash, the git clone process speed is so slow. I've attached two images showing the relative git clone transfer speeds below.

有人可以给我一些建议吗?

Can anybody give me some suggestions?

推荐答案

也许您只能先获取最新的修订,然后再获取其余的修订:

Maybe you can fetch only the latest revision first and then fetch the rest:

$ git clone --depth=1 git@github.com:joe/hello-world.git
$ cd hello-world
$ git fetch --unshallow

感谢这篇文章

这篇关于Git Clone太慢了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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