Skip to content

Instantly share code, notes, and snippets.

@johnbear724
Forked from laispace/git 设置和取消代理
Last active October 6, 2016 16:17
Show Gist options
  • Save johnbear724/840d78ea2af8598cd12bd222ac45f106 to your computer and use it in GitHub Desktop.
Save johnbear724/840d78ea2af8598cd12bd222ac45f106 to your computer and use it in GitHub Desktop.
git config --global https.proxy http://127.0.0.1:1280
git config --global https.proxy https://127.0.0.1:1280
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
git config --global http.proxy 'socks5://127.0.0.1:1280'
git config --global https.proxy 'socks5://127.0.0.1:1280'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment