报错原图如下:(fatal: unable to access 'https://github.com/**/': TCP connection reset by peer)

解决方法:
##发生这种情况是git设置了代理,取消代理即可
[root@hya ~]# git config --global --unset http.proxy
[root@hya ~]# git config --global --unset https.proxy

文献:https://stackoverflow.com/questions/24543372/unable-to-connect-to-git-remote-repository 如果上边的方法无效的话,这篇文章供大家参考.
本文介绍了解决Git因代理设置导致无法访问远程仓库的问题。通过取消代理配置,可以恢复正常连接。





