git clone with NTLM proxy hangs after resolving deltas
I have the same issue and although I can't pinpoint the cause I have what I reckon is a slightly better workaround than using verify-pack and checkout the last commit as explained by cakyus.
The problem with checking out the last commit as the master branch is that you can't guarantee that the commit belongs to that branch in particular, so what I did was:
- Interrupt the git process that hung on resolving deltas with
Ctrl+C
- Fetch branch information with
git fetch
- Checkout the master branch (or any other branch) with
git checkout master
This made git set up my branch master to track remote branch master and unpack the files correctly while also preserving branch information.
Sorry, my english is very bad. Hope you can understand.
I got the same problem here. I can't find and fix the problem but i finally able to checkout. When git clone hangs on "Resolving deltas", kill the git process. So, you have folder my_project
, and file .git\objects\pack\pack-<sha1>.pack
. Now, we need to find the revision number. Type this command below:
git verify-pack -v .git\objects\pack\pack-<sha1>.pack | grep "commit" | more
and the output is something like this:
98c9f779992fc9a52372e0a1a76647e5d9ca5e01 commit 340 227 12
b6435d98f7b62ce69c59ce582beddf547f26d8a2 commit 305 208 239
a2a39a0c707b2919c87b194dca9a0dea307ce069 commit 239 159 447
...
4803e013b30dc9d31e4a8dba7e1a2d65e6f61422 commit 243 167 6768
-- More --
The 98c9f779992fc9a52372e0a1a76647e5d9ca5e01
at the top is HEAD revision, so you can checkout to this point:
git checkout -b master 98c9f779992fc9a52372e0a1a76647e5d9ca5e01
Done.
I hit the same issue, with Git 1.7.11. All my attempts to clone from GitHub result in a hung process with no files. I tried the verify-pack
trick and many other suggestions in similar questions but nothing worked.
I figured maybe this has been improved or fixed in the latest version of Git, so I upgraded to 1.8.3. Bingo, now it works, I can clone!