Git 包文件被截断
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19897664/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Git packfile is truncated
提问by Tob
When trying to pull using EGit with Eclipse I randomly get the error:
尝试在 Eclipse 中使用 EGit 进行拉取时,我随机收到错误消息:
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?
我不知道如何以及为什么会发生这种情况。即使再次导入项目也无济于事。这里有什么问题?
采纳答案by userSil
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.
我遇到了同样的错误,并认识到当我尝试在 Eclipse 中导入并打开本地 git 存储库(存储库将要复制到的目录)时,它总是发生。所以只需关闭文件浏览器并再次导入就解决了我的问题。
回答by turbandroid
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
回答by Paul Leclerc
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 clone(https 地址)并且它有效。
回答by user11575543
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.
我遇到了同样的问题,我发现这是由于 eclipse 中的 git '默认存储库文件夹',我的设置为有空间限制的网络驱动器,一旦我更改为 C 驱动器,它就可以正常工作。
回答by Trikant Allada
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.
我也遇到了同样的错误,但终于知道它的空间问题。我检查代码的驱动器中没有足够的空间。所以我改变了我的驱动器并检查它完美运行的代码。