Freezes after Resolving deltas

If Git freezes for more than 1 hour at “Resolving deltas: 100% (x/x), done.”, then the Proxy may be the issue. We have had confirmed reports from customers using Microsoft ISA Server as a Proxy experiencing this exact issue and it was resolved by switching to CNTLM on Windows 7 instead.

Also try the following steps

Verify Proxy If you are using a proxy, set it in your HOME/.gitconfig file:

[http]
proxy=http://user:password@PROXY_URL:PORT_NUMBER

Verify Objects After letting git try, and it still remains stuck, end the clone by pressing “CTRL-C”. This will return to the command prompt

Type and enter the following command to verify connectivity and validity of objects in the database

git fsck

Manually merge dangling commit If the results return a dangling commit…

$ git fsck
notice: HEAD points to an unborn branch (master)
Checking object directories: 100% (256/256), done.
Checking objects: 100% (3298/3298), done.
notice: No default references
dangling commit 2916d1238ca0f4adec
Merge the dangling commit…

$ git merge 2916d1238ca0f4adec

Clone without Checkout If you are having problems downloading via CLONE without freezing, try cloning without the checkout step included. This is accomplished by using the “-n” flag.

For example:

time git clone -n <URL>

Once the download and resolving deltas is complete, you will have the repository, but no files checked out. Use the git checkout command after the git clone is completed to create the files…

time git clone -n <URL>
cd <URL>
git checkout master

Prune Repository Run the following command on the repository to clean up unnecessary files and optimize:

git gc --prune-now

Reset Repository Resetting the git repository may work, noting that this will wipe out any local changes:

git reset --hard origin/master