Git push hangs when pushing to Github?

后端 未结 21 1745
挽巷
挽巷 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:42

    Try GIT_CURL_VERBOSE=1 git push ...It may happen due to proxy setting git will be trying to reach github.com via proxy server and proxy is not responding. With GIT_CURL_VERBOSE=1 will show the ip address and some information. you can compare ip address with command output "host www.github.com" ip address. if they are different then you can make https_proxy="" and try again.

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

    For the sake of completeness (sometimes problems like this are not as complicated as they might seem):

    Having a non-existing remote repository configured can also result in this behavior - I recently found out by accidentally changing my origin's URL to githu.com.

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

    I'm wondering if it's the same thing I had...

    1. Go into Putty
    2. Click on "Default Settings" in the Saved Sessions. Click Load
    3. Go to Connection -> SSH -> Bugs
    4. Set "Chokes on PuTTY's SSH-2 'winadj' requests" to On (instead of Auto)
    5. Go Back to Session in the treeview (top of the list)
    6. Click on "Default Settings" in the Saved Sessions box. Click Save.

    This (almost verbatim) comes from :

    https://tortoisegit.org/issue/1880

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