1

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

user1803551
  • 12,965
  • 5
  • 47
  • 74
  • Can you push using the SSH URL? You can continue to fetch using https. – nitind Apr 10 '20 at 03:22
  • @nitind What do I need to change in order to do that? – user1803551 Apr 10 '20 at 03:23
  • When you go to your repository in the GitHub web UI, hit the green Clone or download button and look for a Use SSH link in the upper right of the popup. It'll show you the remote to push to. – nitind Apr 10 '20 at 05:38

2 Answers2

1

In the remote repository view, you can see the URL used and modify it if you need to make a test with SSH.

But check first if, as in here, a saved password in secure storage doesn't match with the typed one.
See

Window > Preferences > Security > Secure Storage > Contents Tab > [Default Secure Storage] > GIT 

From there, you should be able to check if a password was stored for github.com.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
0

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.

user1803551
  • 12,965
  • 5
  • 47
  • 74