简体   繁体   中英

Git packfile is truncated

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?

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.

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

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.

我遇到了同样的问题,我发现这是由于Eclipse中的git“默认存储库文件夹”所致,我的设置为具有空间限制的网络驱动器,一旦我更改为C驱动器,它就可以正常工作了。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM