How to set acceleration for your command line

Time:2022-1-9

http

  • linux:
export http_proxy=http://127.0.0.1:1087;
export https_proxy=http://127.0.0.1:1087;
  • window:
set http_proxy=http://127.0.0.1:1087;
set https_proxy=http://127.0.0.1:1087;

socks

  • linux:
export http_proxy=socks5://127.0.0.1:10808
export https_proxy=socks5://127.0.0.1:10808
  • window:
#Using sock5
set http_proxy=socks5://127.0.0.1:10808
set https_proxy=socks5://127.0.0.1:10808

cancel

  • linux:
unset http_proxy
unset https_proxy
  • window:
set http_proxy=
set https_proxy=

Git is set separately

git config --global http.proxy 'socks5://127.0.0.1:10808' 
git config --global https.proxy 'socks5://127.0.0.1:10808'
#Cancel
git config --global --unset http.proxy
git config --global --unset https.proxy

How to set acceleration for your command line