Search code examples
javagiteclipsegithubegit

Error during push using Egit: "Connection reset by peer: socket write error"


When trying to push a branch using Egit to a repository that I own, I get the following error:

Can't connect to any repository: https://github.com/name/rep.git (https://github.com/name/rep.git: Connection reset by peer: socket write error)

  • The credentials are correct.
  • Happens to all branches I try to push to that repo.
  • I can connect to the repository on GitHub.
  • The push fails at 95-96%.
  • I was able to push to that repository before. Not sure what changed.

Using:

Eclipse Version: 2020-03 (4.15)
Build id: I20200305-0155

Eclipse EGit Git integration for Eclipse 5.7.0.202003110725-r org.eclipse.egit


Solution

  • I had to download Eclipse again, install EGit, load the workspace, and then the push worked as usual. It seems that something happened to the installation.

    Opening the old installation now also works again.