Skip to content

Instantly share code, notes, and snippets.

@yi-Xu-0100
Forked from laispace/git 设置和取消代理
Last active July 19, 2020 04:43
Show Gist options
  • Select an option

  • Save yi-Xu-0100/2eb891de22fc75e22ba965b82e7eda4e to your computer and use it in GitHub Desktop.

Select an option

Save yi-Xu-0100/2eb891de22fc75e22ba965b82e7eda4e to your computer and use it in GitHub Desktop.
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
#clash 代理终端
export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7891
@yi-Xu-0100
Copy link
Author

yi-Xu-0100 commented Jul 19, 2020

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

@yi-Xu-0100
Copy link
Author

yi-Xu-0100 commented Jul 19, 2020

git config --global https.proxy socks5://127.0.0.1:7891
git config --global https.proxy socks5://127.0.0.1:7891

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment