由于GitHub被墙,需要开代理访问,本地推送项目时候出现 fatal unable to access ‘https://github.comxxxxxxxxxxx.git’ Recv failure Connection was reset

这时需要配置git的代理,先找到本地代理的端口,windows在设置中搜索 proxy 即可查看
把git代理添加上:

git config --global http.proxy http://127.0.0.1:端口

再push试试

不行的话把https加上试试(个人推测,没试过)

git config --global http.proxy https://127.0.0.1:端口

如果需要取消Git代理

git config --global --unset.http.proxy

git config --global --unset.https.proxy