Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is the size of the forked repository so huge in GitHub?

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?

like image 708
Ankit Avatar asked Feb 18 '23 15:02

Ankit


1 Answers

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

like image 159
Brian Roach Avatar answered Mar 16 '23 16:03

Brian Roach