Skip to content

Instantly share code, notes, and snippets.

@YangMame
Last active January 3, 2018 08:42
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 YangMame/d5741802903bbba3b20324b84c893416 to your computer and use it in GitHub Desktop.
Save YangMame/d5741802903bbba3b20324b84c893416 to your computer and use it in GitHub Desktop.
Git设置代理

Socks:

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

HTTP:

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

Unset:

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