码迷,mamicode.com
首页 > Windows程序 > 详细

【Git】Git hangs while unpacking objects (Windows)

时间:2016-07-13 20:20:40      阅读:1078      评论:0      收藏:0      [点我收藏+]

标签:

Git hangs while unpacking objects (Windows)

I‘m not sure if this is because we‘re behind a proxy, the network has issues or my work laptop isn‘t great, but for some reason the git clones very often hang during the unpacking of objects.

remote: Counting objects: 21, done.
remote: Total 21 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (21/21), done.

There is a way to recover this, if you Ctrl+C to exit the git command then cdinto the folder cloned into.

git fsck

notice: HEAD points to the unborn branch (master)
Checking object directories: 100% (256/256), done.
notice: No default references
dangling commit: 0a343894574c872348974a89347c387324324

The bit we‘re interested in is the dangling commit, if we merge this commit manually all will be fine

git merge 0a343894574c872348974a89347c387324324

Job done, you should now have the completed clone.

 

参考资料:

http://www.owenrumney.co.uk/2014/10/14/Git-stalls-on-unpacking-objects.html

 

【Git】Git hangs while unpacking objects (Windows)

标签:

原文地址:http://www.cnblogs.com/junneyang/p/5667698.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!