Windows git和cmd代理设置
linux的比较简单,直接修改配置文件即可,这里就不再赘述 设置Git代理 http代理: 临时代理: export http_proxy= http://127.0.0.1:7777 export https_proxy= http://127.0.0.1:7777 永久代理: 命令方式: git config --global http.proxy http://127.0.0.1:50015 git config --global https.proxy http://127.0.0.1:50015 修改配置文件方式 进入用户名根路径,找到 .gitconfig 文件,修改( 地址和端口换成自己的 )为: [http] proxy = http://127.0.0.1:50015 [https] proxy = http://127.0.0.1:50015 查看http (s)代理情况: git config --get --global http.proxy git config --get --global https.proxy 永久代理 - SOCKS5 代理设置 命令方式: git config --global http.proxy socks5://127.0.0.1:50014 git config --global https.proxy socks5:/