git设置和取消代理
设置代理
git config --global http.proxy socks5h://127.0.0.1:1080
取消代理
git config --global --unset http.proxy
如果用的是http
代理,将socks5h
改为http
即可
如果仅仅想为 github 设置代理,可以这样:
对于使用git@
协议的,可以配置socks5
代理
在~/.ssh/config
文件后面添加几行(没有可以新建一个)
windows
使用:
Previousgit提示error setting certificate verify locations解决办法NextHow to Delete Commit History in Github
Last updated
Was this helpful?