Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Art2Cat/f7e7d76f95fab455a55f412ab5be2b76 to your computer and use it in GitHub Desktop.
Save Art2Cat/f7e7d76f95fab455a55f412ab5be2b76 to your computer and use it in GitHub Desktop.
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
@Art2Cat
Copy link
Author

Art2Cat commented Jun 8, 2017

git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'

@Art2Cat
Copy link
Author

Art2Cat commented Jun 8, 2017

让go get用上http代理:

windows: go get前设置代理: 执行 set http_proxy=http://localhost:1087/ set https_proxy=http://localhost:1087/,然后go get就会走代理了
linux: go get前设置代理: 执行 export http_proxy=http://localhost:1087/,export https_proxy=http://localhost:1087/ 然后go get就会走代理了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment