https/http 协议的执行:
# 设置 http 代理
git config --global https.proxy http://127.0.0.1:8080
# 或 socks5 代理
git config --global http.proxy socks5h://127.0.0.1:1080
# 取消代理
git config --global --unset http.proxy
https/http 协议的执行:
# 设置 http 代理
git config --global https.proxy http://127.0.0.1:8080
# 或 socks5 代理
git config --global http.proxy socks5h://127.0.0.1:1080
# 取消代理
git config --global --unset http.proxy
After checking multiple tutorials I had to take pieces from each of the following to get this to work on my Win10 system:
Basically it uses the steps from the first article, but under the background
path from the second article.
Neither article on its own worked for me.
Steps: