git clone with NTLM proxy hangs after resolving deltas

前端 未结 6 721
深忆病人
深忆病人 2020-12-29 11:24

I saw here many questions covering git and proxy topics but none of them solves my problem. I am cloning a git repository from Bitbucket. Everything works fine from my home

6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-29 11:50

    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-.pack. Now, we need to find the revision number. Type this command below:

    git verify-pack -v .git\objects\pack\pack-.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.

提交回复
热议问题