Skip to content

Instantly share code, notes, and snippets.

@luckylu
Forked from laispace/git 设置和取消代理
Created April 29, 2018 14:35
Show Gist options
  • Save luckylu/5889a3e9a5fba7041297093e433590d2 to your computer and use it in GitHub Desktop.
Save luckylu/5889a3e9a5fba7041297093e433590d2 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
@luckylu
Copy link
Author

luckylu commented Apr 29, 2018

Host github.com
ProxyCommand nc -X 5 -x 127.0.0.1:1080 %h %p

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