1. 确保已经在WSL中安装了Git客户端。如果没有安装,可以通过以下命令在WSL中安装: “` sudo apt update sudo apt install git “` 2. 打开WSL终端,并进入要使用代理的Git仓库所在的目录。 3. 配置Git全局代理设置,使用以下命令设置代理地址和端口: “` git config –global http.p
先运行此命令,清除过去可能设置过的 git 代理: git config --global --unset http.proxy 然后依次运行以下命令,设置 Git 的 http 代理: git config --global http.proxy http://192.168.0.156:7890 git config --global https.proxy http://192.168.0.156:7890 6. 检查 Git 代理 运行telnetgithub.com 22命...
一、选择代理软件 代理软件通常有clash和v2ray两种 选择clash,将局域网打开,默认代理号为7890 选择v2ray...
1.wsl下socks5快速配置git http 代理2024-12-31 收起 编辑配置文件 vim ~./bashrc 将00000替换为你的端口 export windows_host=`cat /etc/resolv.conf|grep nameserver|awk '{print $2}'` export ALL_PROXY=socks5://$windows_host:00000 export HTTP_PROXY=$ALL_PROXY export http_proxy=$ALL_PROXY ...
在WSL2 环境中 clone 一个很大的 git 项目,不走代理速度很慢,所以研究了一下怎么让 WSL2 走Windows的代理客户端。 01 — WSL1 和 WSL2 网络的区别 在WSL1 时代,由于Linux子系统和 Windows 共享了网络端口,所以访问 Windows 的代理非常简单。例如 Windows 的代理客户端监听了 8000 端口,那么只需要在 Linux ...
git config --global https.proxy https://127.0.0.1:10809 以上命令最后的 url 需要更换成你的代理链接。 附上取消代理的命令: git config --global --unsethttp.proxy git config --global --unsethttps.proxy 2.1.2. 递归克隆仓库中的第三方源码仓库 ...
wsl - git设置代理加速github拉去项目 1、使用命令 # http代理: git config --global https.proxy http://127.0.0.1:10800 # 具体端口看代理软件的端口 git config --global https.proxy https://127.0.0.1:10800 # socks5代理: git config --global http.proxy 'socks5://127.0.0.1:10800' git config ...
再安装git,各种配置以后,希望可以使用子系统开发调试java项目,结果,性能慢的要死。 使用wsl命令进行导出,导入 Export distro to a file: wsl.exe --export Ubuntu-18.04 C:\folder\file.tar.gz Import to new name: wsl.exe --import MyDistro C:\fold...
取消注册(这个操作不会删除⽬录)lxrunoffline ur -n <WSL名称> 使⽤新名称注册 lxrunoffline rg -n <WSL名称> -d <WSL路径> -c <配置⽂件路径>.xml 设置默认 WSL 设置默认 WSL 后,可以在 cmd 和 powershell 中输⼊ wsl 直接调⽤默认的 WSL 。lxrunoffline sd -n <WSL名称> 等同于wsl -s ...
*如果选择不通过代理,那么错开一个端口号即可: export http_proxy="socks5://127.0.0.1:1081" export https_proxy="socks5://127.0.0.1:1081" git设置如上却不可以进行代理,然后如下设置: git config --global http.proxy "xxx.x.x.x:1080" 其中xxx.x.x.x是第一步查出来的本机ip也可以是默认的127.0...