Skip to content

Instantly share code, notes, and snippets.

@bygreencn
Created April 29, 2021 09:53
Show Gist options
  • Save bygreencn/2acb4541812d3f5414718c49ed14c8b1 to your computer and use it in GitHub Desktop.
Save bygreencn/2acb4541812d3f5414718c49ed14c8b1 to your computer and use it in GitHub Desktop.
git proxy for special domain
#just proxy for github.com
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080
git config --global http.https://github.com.sslVerify false
git config --global https.https://github.com.proxy socks5://127.0.0.1:1080
git config --global https.https://github.com.sslVerify false
#cancel proxy
git config --global --unset http.https://github.com.proxy
git config --global --unset http.https://github.com.sslVerify
git config --global --unset https.https://github.com.proxy
git config --global --unset https.https://github.com.sslVerify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment