Development

Azure DevOps GIT with SSH: fetch-pack: unexpected disconnect while reading sideband packet

In the organization I currently am, on a specific projet, the GIT repository is pretty beefy and large. I had not updated the development branch in a while, due to my assignation on some other projects. Once I had some time to come back to work on this project and see where the team was in terms of code, I wanted to make sure my local development branch was up to date with the remote by pulling the code using the the git pull command.

After issuing the command, I got the following error:

This seems to be related to the decompression of the code once it’s received from the remote.

One solution to counter this problem, is to switch the remote to HTTPS

git remote set-url origin https://<organization>@dev.azure.com/<organization>/<project>/_git/<project>

Another solution is to set the set the core compression to none (or 0)

git config --global core.compression 0

Doing either or should allow you to pull. The same can be done if there’s a problem with the cloning of the repository.