During git pull: error: RPC failed; result=56, HTTP code = 200 [x] KiB/s fatal: The remote end hung up unexpectedly

If you receive this series of errors during a git pull (after the Receiving Objects stage):


$ git pull
Password for 'https://xxxxxxxxxx@bitbucket.org': 
remote: Counting objects: 1011, done.
remote: Compressing objects: 100% (394/394), done.
error: RPC failed; result=56, HTTP code = 200 51 KiB/s      
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

a quick solution is to use ssh to pull rather than the https protocol

Hope this helps