cmd和bash,git设置代理的方法

运行下面代码

复制代码
git config --global --unset http.proxy
git config --global --unset https.proxy

npm config delete proxy

git config --global http.proxy 'socks5://127.0.0.1:1082'
git config --global https.proxy 'socks5://127.0.0.1:1082'

git config --global http.proxy 'socks5://47.92.161.121:3000'
git config --global https.proxy 'socks5://47.92.161.121:3000'


export http_proxy='127.0.0.1:1082'
export https_proxy='127.0.0.1:1082'


set http_proxy='127.0.0.1:1082'
set https_proxy='127.0.0.1:1082'
复制代码

 

本文作者:方方和圆圆

本文链接:https://www.cnblogs.com/diligenceday/p/13626500.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   方方和圆圆  阅读(657)  评论(0编辑  收藏  举报
历史上的今天:
2017-09-07 wifi pineapple 外接USB无线网卡桥接外网
2016-09-07 sublime3安装liveload,实现前端自动F5刷新html界面

再过一百年, 我会在哪里?

💬
评论
📌
收藏
💗
关注
👍
推荐
🚀
回顶
收起
点击右上角即可分享
微信分享提示