很抱歉打扰你这个天才。。
我遇到了一个常见的问题,关于堆栈溢出有很多解决方案,但这些解决方案都不适合我。所以最后我别无选择,只能再次就堆栈溢出问题向你这位天才寻求帮助。
- 我的服务器上有一个克隆的存储库
- 当我在开发机器上更改了一些代码并将其推送到远程git存储库时,一切都很顺利
- 错误从我从服务器提取数据时开始。在服务器上,i命令
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
- 我尝试过这种懒散:致命:早期EOF致命:索引包失败但我从步骤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
-
我还得到了一个解决方案,即没有足够的交换内存。所以我创建了一个交换内存。开始时交换为0…配置交换后,
free -m
结果为:total used free shared buffers cached
Mem: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
- 在git克隆时远程端意外挂断,按照步骤操作,但错误再次出现。以下是我的git配置文件
$git-config-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-
Linux VM-87-192-ubuntu 3.13.0-86-generic#131 ubuntu SMP 5月12日星期四23:33:13 UTC 2016 x86_64 x86_64 GNU/Linux
git—版本
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
您可以通过选择其中一个来增加postBuffer
大小来解决问题:
终端内:
$ git config --global http.postBuffer 1048576000
或修改gitconfig
文件:
$ vim ~/.gitconfig # open gitconfig with ur favorite IDE
在gitconfig
文件的末尾添加以下行:
[http]
postBuffer = 1048576000
是否尝试将http的postbuffer扩展为double?这对我有用。
git config --global http.postBuffer 1048576000
有些时候网络连接很重要。你需要确定你是否有正确的互联网连接。我也面临同样的问题,并通过更改我的Internet解决了这个问题