Skip to content

Instantly share code, notes, and snippets.

@caorong
Created February 1, 2017 10:28
Show Gist options
  • Save caorong/42a16c7e924cb57160a6a8a689ca0fcb to your computer and use it in GitHub Desktop.
Save caorong/42a16c7e924cb57160a6a8a689ca0fcb to your computer and use it in GitHub Desktop.
down-go-lib-with-cow
## set
export http_proxy=http://localhost:8989
export https_proxy=$http_proxy
export ftp_proxy=$http_proxy
export rsync_proxy=$http_proxy
export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"
git config --global https.proxy http://127.0.0.1:8989
git config --global https.proxy https://127.0.0.1:8989
## unset
unset http_proxy
unset https_proxy
unset ftp_proxy
unset rsync_proxy
unset no_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