Git Tips

| 分类 Programming  | 标签 Programming  tools  git 

bitbucket fatal: The remote end hung up unexpectedly

现象: git clone 结束时出现:

remote: Compressing objects: 100% (6224/6224), done.
Connection to bitbucket.org closed by remote host.9.00 KiB/s    
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

方案:

It seems like the commit size was too big (default is < 1Mbyte).

Resolved it with rising the limit up to 500Mbytes:

$ git config --global http.postBuffer 524288000

同步 push 到多个镜像库

  1. 创建多个镜像 remote:
$ git remote add mirror git@git.sitename.com:username/mirror_rep.git
  1. push
$ git push && git push mirror

see: https://bitbucket.org/site/master/issues/3578/cannot-push-fatal-the-remote-end-hung-up


上一篇     下一篇