git设置代理

Hello World, Hello Blog

Posted by stq on September 20, 2021

git设置代理

由于xj屏蔽了github,需要git设置代理才能成功推送Blog

git config --global http.proxy 'socks5://127.0.0.1:7890'
#或者
git config --global http.proxy 'http://127.0.0.1:7890'
# 取消代理
git config --global --unset http.proxy