Git push hangs when pushing to Github?

后端 未结 21 1743
挽巷
挽巷 2020-12-07 19:48

Git push hangs everytime I try to push to github. I am using Cygwin and Windows 7. Git functions fine locally tracking branches, providing status, setting global user.name a

相关标签:
21条回答
  • 2020-12-07 20:17

    I thought my Git windows screen was struck but actually a sign in prompt comes behind it.Check for it and enter your credentials and that's it.

    0 讨论(0)
  • 2020-12-07 20:18

    Its worth checking if you are using the cygwin git or an external git (ie github).

    If whereis git returns just /cygdrive/c/Program Files (x86)/Git/cmd/git.exe or similar its best to install the cygwin git package, this solved the problem for me.

    0 讨论(0)
  • 2020-12-07 20:18

    I just wanted to say that I'm having this issue on my AWS EC2 instances. I was trying to push from my EC2 instance itself, when I have it configured to only allow traffic in from the load balancer. I changed the rule to allow HTTP in from everywhere, but it still didn't fix the problem. Then I realized it's because my security groups are configured to not allow outbound traffic from my EC2 instances over HTTPS. I didn't have allow HTTPS inbound traffic to make it work, even though it's probably a good policy for you to have HTTPS available inbound.

    0 讨论(0)
  • 2020-12-07 20:19

    Another reason might be that the git server has reached its resource limits, and there's nothing wrong with your local git setup.

    0 讨论(0)
  • 2020-12-07 20:20

    I had the same problem with absolutely same symptoms… I was about to rebuild my whole system in my despair)).

    I even was so naive to try git config --global core.askpass "git-gui--askpass" as some people suggest here, but it didn't work… git push was still freeze…

    But then I figured out that there was an error with my SSH agent. So I've restarted ssh-agent and… PROFIT

    Conclusion: Always check your SSH Agent and SSHD server when you have troubles with ssh connection… I'm pretty sure that was your problem (And that's why it worked after reinstallation of your system)

    0 讨论(0)
  • 2020-12-07 20:21

    Will usually see myself running into this problem when pushing a large quantity of files.

    If you can be patient and let the files finishing uploading, you might not need to do anything at all. Good luck –

    0 讨论(0)
提交回复
热议问题