Skip to content

Instantly share code, notes, and snippets.

@taoyuan
Last active March 13, 2020 12:25
Show Gist options
  • Save taoyuan/ae44714e86d162da251007031eecfe31 to your computer and use it in GitHub Desktop.
Save taoyuan/ae44714e86d162da251007031eecfe31 to your computer and use it in GitHub Desktop.
git config proxy set and unset
# http proxy
git config --global https.proxy http://127.0.0.1:1088
git config --global https.proxy http://127.0.0.1:1088
# socks5 proxy
git config --global http.proxy socks5://127.0.0.1:1080
git config --global https.proxy socks5://127.0.0.1:1080
# unset proxy
git config --global --unset http.proxy
git config --global --unset https.proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment