5

When I try and push --all to GitHub, the Git transfer starts out fast, slows down, and eventually stops. It doesn't fail, it just slows to a halt. What's going on? This is really frustrating, I'd like to get my code pushed, but every time I try this, it slows to a stop. I've tried on multiple networks, so I don't think it's my network connection.

5
  • What's the output of git config -l?
    – user13742
    Commented Jan 16, 2012 at 20:54
  • I was able to force it through by just trying over and over again; when I ran it with -v (verbose mode) it worked better for some reason and was able to complete. Commented Jan 16, 2012 at 20:54
  • Are you using https? For large repositories, https might be slow. You can try using the ssh address instead. Commented Mar 14, 2016 at 9:03
  • What git protocol is/was being used here? Commented Jul 10, 2017 at 8:22
  • check your ssh key is the one which set in your github repo check your vpn (turn it off) Commented May 2, 2021 at 11:33

2 Answers 2

1

I had this issue and realized it was because I had set a default port number (and username) in my ~/.ssh/config. I had recently decided to use it for custom ssh ports and my normal user name on webservers I access. Remember, star means ALL ssh connections! >_<

# This is bad!
Host *
  Port 4876
  User myuser
0

I was following the guide here on macOS High Sierra 10.13.4. https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/

What worked for me was removing the config they ask you to add. So DO NOT add this config file

Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .