git: When uploading code, fatal: unable to access 'XXX': Recv failure: Connection was reset

        A few days ago, it was fine to upload the android code in as in github to github through git. Today, I can’t upload it, and I can’t push it. The error reported is as above. The solution is as follows:

1. Enter the following two lines of instructions in sequence on the git command line interface where the code is submitted:

//输入指令1
git config --global --unset https.proxy

//输入指令2
git config --global --unset http.proxy

2. Open your cmd, and enter the following command:

ipconfig/flushdns

3. You're done, and then you can resubmit the code, just push it directly. 

4. If it doesn't work, you can try to restart git and other operations, and it will be fine.

5. If it still doesn’t work, check to see if the certificate to connect to github has expired, just enter the project and have a look.

Guess you like

Origin blog.csdn.net/xiaokang666/article/details/131027764