git配置代理命令
// 查看当前代理设置
git config --global http.proxy
// 设置当前代理为 http://127.0.0.1:1080 或 socket5://127.0.0.1:1080
git config --global http.proxy ‘http://127.0.0.1:1080’
git config --global https.proxy ‘http://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’ /
/ 删除 proxy git config --global --unset http.proxy
git config --global --unset http.proxy
git config --global --unset https.proxy
本文详细介绍了如何使用Git命令行工具配置HTTP和HTTPS代理,包括设置和取消代理的步骤。通过具体的命令示例,读者可以了解到如何针对不同的网络环境进行Git代理配置。
2862

被折叠的 条评论
为什么被折叠?



