为什么GitHub中分叉库的大小如此之大? [英] Why is the size of the forked repository so huge in GitHub?

查看:90
本文介绍了为什么GitHub中分叉库的大小如此之大?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 github 的新手,我需要了解 wireshark 通过分析其源代码。源代码显然是在 23 MB 左右,但是如果我尝试从网站提供的链接中做一个git克隆,结果是 636 MB 。 p>

有人可以澄清为什么克隆与源代码相比如此之大吗?

解决方案

使用 git 来克隆存储库时,这就是您正在做的事情;克隆一个版本库。你得到的所有分支和他们的历史,不只是 master



如果您真的想要,您可以获得 master (或特定分支) - 请参阅:克隆只有一个分支


I am a newbie to github and I am required to have an understanding of wireshark by analyzing its source code. The source code is apparently around 23 MB but if I try to do a git clone from the link provided in the website, it turns out to be around 636 MB.

Can someone please shed some light as to why the clone is so big compared to the source code?

解决方案

When you clone a repository with git ... that's what you're doing; cloning a repository. You're getting all the branches and their histories, not just master.

If you really wanted to, you could just get master (or a specific branch) - see: Clone only one branch

这篇关于为什么GitHub中分叉库的大小如此之大?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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