解决Ubuntu16.04下git clone太慢问题

时间:2023-03-10 01:43:27
解决Ubuntu16.04下git clone太慢问题
  • 记录一些博客,省着自己再去找了。。。
  • ss-qt5安装
  • 生成.pac
genpac --pac-proxy  "SOCKS5 127.0.0.1:1080" --gfwlist-proxy="SOCKS5 127.0.0.1:1080" --output="autoproxy.pac" --gfwlist-url="https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt"

如果上一句报错请尝试下面的命令

sudo genpac --proxy="SOCKS5 127.0.0.1:1080" -o autoproxy.pac --gfwlist-url="https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt"

点击:System settings > Network > Network Proxy,选择 Method 为 Automatic,设置 Configuration URL 为 autoproxy.pac 文件的路径(即file:///****autoproxy.pac),点击 Apply System Wide。

参考博客

  • 无法找到软件包*-qt5解决

参考博客

  • git配置
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'
  • 取消配置
git config --global --unset http.proxy
git config --global --unset https.proxy