Windows 下,怎么设置 cmd、git bash 走代理。。

2021-06-29 17:25:32 +08:00
 ShuoHui
set http_proxy=http://127.0.0.1:1080
set https_proxy=https://127.0.0.1:1080

不生效。。会是什么原因。。

11781 次点击
所在节点    Windows
24 条回复
KickAssTonight
2021-06-30 16:00:03 +08:00
export http_proxy=http://127.0.0.1:1080
export https_proxy=http://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'
kerr92
2021-06-30 21:35:53 +08:00
正好整理过一份花式代理设置方式 https://keqingrong.cn/blog/2021-02-19-proxy-and-pac
HankAviator
2021-07-01 01:10:08 +08:00
@OmO wsl2 没问题啊,是不是调用的 git 不对?如果 wsl2 里面装的,要填 nat 的地址的。
theatom
2022-01-10 16:27:59 +08:00
@codehz +1

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/786515

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX