打开calsh
开启ALLOW LAN 与System Proxy,
鼠标放到allow lan上,可以看到下方给出了为wsl分配的ip
打开wsl命令行,输入以下命令
ttj@ttj:/bin$ git config --global http.https://github.com.proxy http://172.18.16.1:7890
ttj@ttj:/bin$ git config --global https.https://github.com.proxy http://172.18.16.1:7890
如果要为terminal终端配置代li,使用以下命令
export http_proxy=http://172.18.16.1:7890
export https_proxy=http://172.18.16.1:7890
如有疏漏,欢迎提出