【发布时间】:2017-05-26 08:36:20
【问题描述】:
很抱歉给你添麻烦了..
我遇到了一个常见问题,即堆栈溢出有很多解决方案,但这些解决方案都不适合我。所以最后我别无选择,只能再次向你的天才寻求帮助。
- 我的服务器上有一个克隆的存储库。
- 当我在我的开发机器上更改了一些代码并推送到远程 git 存储库时,一切都很顺利。
- 错误从我从服务器拉取数据开始。在服务器上,我命令
git pull出现以下错误:
remote: Counting objects: 66, done.
remote: Compressing objects: 100% (65/65), done.
Connection to bitbucket.org closed by remote host.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: unpack-objects failed
- 我试过这个sloution:fatal: early EOF fatal: index-pack failed
但我收到错误表单第 2 步
git clone --depth 1 <repo_URI>
错误是:
Cloning into 'sinolife'...
remote: Counting objects: 2783, done.
remote: Compressing objects: 100% (2199/2199), done.
Connection to bitbucket.org closed by remote host.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
-
我还得到了一个解决方案,即交换内存不足。所以我创建了一个交换内存。一开始swap是0...在我配置swap后,
free -m结果是:total used free shared buffers cached
电话号码:993 930 63 0 21 57
-/+ 缓冲区/缓存:851 142
交换:499 16 483
但我也遇到了一些错误。
$git pull
remote: Counting objects: 66, done.
remote: Compressing objects: 100% (65/65), done.
Connection to bitbucket.org closed by remote host.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: unpack-objects failed
$git clone
Cloning into 'sinolife'...
remote: Counting objects: 2783, done.
remote: Compressing objects: 100% (2199/2199), done.
Connection to bitbucket.org closed by remote host.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
- 还有The remote end hung up unexpectedly while git cloning,按照步骤,但是又报错了。以下是我的 git 配置文件
$git 配置 -l
http.postbuffer=524288000
user.email= myemail@myemail.com
core.compression=0
core.compression=-1
core.compression=-1
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
core.compression=-1
core.packedgitlimit=512m
core.packedgitwindowsize=512m
remote.origin.url= my repository
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
pack.deltacachesize=2047m
pack.packsizelimit=2047m
pack.windowmemory=2047m
-
我的环境:
uname -a
Linux VM-87-192-ubuntu 3.13.0-86-generic #131-Ubuntu SMP Thu May 12 23:33:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
git --version
git 版本 2.11.0
8.希望有人可以帮助我给我一些提示。
9.问题摘要
我有一个 git 仓库,并且已经克隆到服务器了,但是当git pull
remote: Counting objects: 66, done.
remote: Compressing objects: 100% (65/65), done.
Connection to bitbucket.org closed by remote host.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: unpack-objects failed
当开始一个新的克隆git clone
Cloning into 'sinolife'...
remote: Counting objects: 2057, done.
remote: Compressing objects: 100% (1740/1740), done.
Connection to bitbucket.org closed by remote host.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
【问题讨论】:
-
您的输出显示您正在使用 bitbucket.org 作为您的遥控器;你联系过他们的支持吗?他们似乎对此了解很多,因此可能有更多处理此错误的经验,而且他们肯定比我们更有能力解决与他们的服务器的连接问题
-
@Mark Adelsberger 谢谢你的建议..我可以在我的开发机器上克隆存储库,因此,我认为服务器没有连接问题..我会以任何方式联系 bitbucket更多帮助,谢谢...
-
@wuxianghou 你的问题解决了吗?我也遇到了这个问题...
-
我使用gitblit 经常遇到同样的问题(
fatal: unpack-objects failed)。上一次拉动更改以完成新分支对我有帮助。但这一次我无法摆脱它(( -
好的,我设法再次解决了它:跳转到您之前的提交。在那里创建临时分支。
git pull origin your_branch。git checkout your_branch并再次拉动。我不知道为什么,但它解决了问题
标签: git fatal-error