Git push hangs when pushing to Github?

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

    Try creating a script like ~/sshv.sh that will show you what ssh is up to:

    #!/bin/bash
    ssh -vvv "$@"
    

    Allow execution of the ~/sshv.sh file for the owner of the file:

    chmod u+x ~/sshv.sh
    

    Then invoke your git push with:

    GIT_SSH=~/sshv.sh git push ...
    

    In my case, this helped me figure out that I was using ssh shared connections that needed to be closed, so I killed those ssh processes and it started working.

提交回复
热议问题