Hey all,
Recently I was cloning a git repository(mediawiki core).As you all know it takes a lot of time as there is a large amount of data and moreover my campus wifi is not in a good pace.I waited a long time(around 4 hours),the cloning reached 99% and I was feelling very much excited.Suddenly something like this popped out:

I repeated the same process three times,but faced the same error all the times.(I think many who have cloned large repositories have faced the same).This is mainly due to network problem.
So,googled a lot and got help from some of my friends(special thanks Dhanvi ;))

It was fixed by trying the shallow clone,i.e
Here we are not cloning the git repo at a stretch,the process is divided
Step 1:
git clone --depth=1 git_repository

Enter the cloned repo.
Deepen the clone using:
git fetch --depth=N git_repository
Note:N should be substituted with any positive value

Step 3:
To download rest of the revisions;

git fetch --unshallow git_repository

Have fun ๐Ÿ˜‰



  1. Well technically you didn’t fix the networking issue with ICTS but you did a work around ๐Ÿ˜›

    also you should have explained what depth means ๐Ÿ™‚

    And I wish git clone will be resumable and like to work on it too ๐Ÿ™‚

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s