why

This is usually done by proxy, and one of the cases I have encountered is that the composer installed in PHP causes the code to fail to be submitted

The solution

Git config --global --unset http.proxy git config --global --unset http.proxyCopy the code
Git config --global --unset https.proxy git config --global --unset https.proxyCopy the code
# # to check agent under the env | grep -i proxy # # is there? Has just cancelled the unset http_proxy unset https_proxy # # to query the env | grep -i proxy # # had no # # but still can't submit code, check the environment variables, Delete http_proxy and https_proxyCopy the code

teasing

PHP composer is a fighter in the garbage.