简体   繁体   English

git packfile被截断

[英]Git packfile is truncated

When trying to pull using EGit with Eclipse I randomly get the error: 当尝试在Eclipse中使用EGit时,我随机得到以下错误:

packfile is truncated packfile被截断

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. 我遇到了同样的错误,并且意识到当我尝试在Eclipse中导入并打开本地git存储库(该存储库将被复制到的目录)时,总是会发生此错误。 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 有关更多信息,请访问http://dev.eclipse.org/mhonarc/lists/ptp-user/msg02968.html

None of the existing answers work. 现有答案均无效。 I had this error with Netbeans. 我在Netbeans中遇到此错误。

So I try directly using Git Bash to do my git clone (https address) and it works. 因此,我尝试直接使用Git Bash进行git克隆(https地址),并且可以正常工作。

我遇到了同样的问题,我发现这是由于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. 驱动器中没有足够的空间来检出代码。因此,我更改了驱动器并检出了代码,它运行得非常完美。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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