Skip to content

Instantly share code, notes, and snippets.

@HaHaBird
Created July 22, 2021 03:37
Show Gist options
  • Save HaHaBird/4dbf6a035a1e0f4259e7fb4a19742322 to your computer and use it in GitHub Desktop.
Save HaHaBird/4dbf6a035a1e0f4259e7fb4a19742322 to your computer and use it in GitHub Desktop.
git配置代理
http
git config --global http.proxy "http://127.0.0.1:[your port]"
git config --global https.proxy "http://127.0.0.1:[your port]"
sock5:
git config --global http.proxy "socks5://127.0.0.1:[your port]"
git config --global https.proxy "socks5://127.0.0.1:[your port]"
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