Git packfile is truncated

空扰寡人 提交于 2019-11-28 07:41:54

问题


When trying to pull using EGit with Eclipse I randomly get the error:

packfile is truncated

I don't know how and why this occurs. Even importing the project again doesn't help. What's the problem here?


回答1:


I had the same error and recognized that it always occured when I tried to import in Eclipse while having the local git repository (the directory the repository is going to be copied into) open. So just closing the file browser and importing again solved my problem.




回答2:


This problem could possibly be caused by not having enough space to create the pack files, so make sure you are not hitting any space. For more check at http://dev.eclipse.org/mhonarc/lists/ptp-user/msg02968.html




回答3:


None of the existing answers work. I had this error with Netbeans.

So I try directly using Git Bash to do my git clone (https address) and it works.




回答4:


I had the same issue, i discovered it was due to the git 'default repository folder' in eclipse, mine was set to a network drive which had a space limit, once I changed to my C drive it worked without issue.




回答5:


I too got the same error but finally came to know that its space issue . there was not enough space for in the drive where i checkout the code .So I changed my drive and checkout the code it went perfectly.



来源:https://stackoverflow.com/questions/19897664/git-packfile-is-truncated

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!