如何解决从 bitbucket 中提取 git 中的错误?

How to resolve error in git pull from bitbucket?

在 bitbucket 上发出拉取请求时出现以下错误。 项目使用python-django框架编写。

remote: Counting objects: 3703, done.
remote: Compressing objects: 100% (3030/3030), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

有什么解决办法吗?

报错说明问题出在远端。它可能是暂时的,甚至可能在您阅读本文时修复。但是,如果问题仍然存在,请切换到 git+ssh

Here's how

To use SSH with Bitbucket, you create an SSH identity containing a private key (on your local computer) and a public key (uploaded to Bitbucket) which create a key pair. After setting up SSH between your local system and Bitbucket, your system uses the key pair to authenticate you automatically to anything to which the associated account has access.

您需要使用

更改您的 git 远程设置
git remote --set-url name ssh://git@bitbucket....