I\'ve seen a couple of similar questions to this, but haven\'t been able to solve my problem so am asking again.
I added a load of new files to an existing git-ena
Sometimes this happens with an enterprise github as well due to load issues. I found a good way is to split the clone into two operations, which makes for lighter load on the server.
First, do a shallow clone: git clone --depth 1 myRepo.git
Next, enter the clone, and get all the rest of the history to make a full clone: cd myRepo && git fetch --unshallow
If you have an old version of git which does not support the --unshallow flag, then you can instead do something like git fetch --depth=1000000 or some other suitably large number.
Some more alternatives are discussed in this blog post: https://blogs.atlassian.com/2014/05/handle-big-repositories-git/