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.
2 Answers
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
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
git config -l
?-v
(verbose mode) it worked better for some reason and was able to complete.