解决GitHub push项目——Push failed: Unable to access 'https://********.git/': Failed to connect to 127.0.0.1 port 1080: Connection refused
解决方法:
第一步:在git中设置http代理
git config --global http.proxy
第二步:在git中取消http代理
git config --global --unset http.proxy
注意:(摘自:原文链接:https://blog.csdn.net/tanningzhong/article/details/52817399)
本地开启VPN后,GIt也需要设置代理,才能正常略过GFW,访问goole code等网站。
设置:
git config --global https.proxy http://127.0.0.1:1080 git config --global https.proxy https://127.0.0.1:1080 git config --global http.proxy 'socks5://127.0.0.1:1080' git config --global https.proxy 'socks5://127.0.0.1:1080'
取消:
git config --global --unset http.proxy
git config --global --unset https.proxy