Skip to content

Instantly share code, notes, and snippets.

@eczn
Forked from laispace/git 设置和取消代理
Last active August 12, 2023 07:37
Show Gist options
  • Select an option

  • Save eczn/2f477cfe0e45609f2e422bcd556f3829 to your computer and use it in GitHub Desktop.

Select an option

Save eczn/2f477cfe0e45609f2e422bcd556f3829 to your computer and use it in GitHub Desktop.
git 设置和取消代理
# 设置
git config --global https.proxy http://127.0.0.1:1080
git config --global http.proxy https://127.0.0.1:1080
# 取消
git config --global --unset http.proxy
git config --global --unset https.proxy
# 删除 npm proxy 配置
npm config delete proxy
@eczn
Copy link
Copy Markdown
Author

eczn commented Aug 12, 2023

更多内容看原 fork 的评论区

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