Skip to content

Instantly share code, notes, and snippets.

@laispace
Last active April 24, 2025 08:45
Show Gist options
  • Save laispace/666dd7b27e9116faece6 to your computer and use it in GitHub Desktop.
Save laispace/666dd7b27e9116faece6 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
@taoliujun
Copy link

taoliujun commented Apr 14, 2025

mac下,仅仅设置 ~/.ssh/config 即可:

Host github.com
    User git
    ProxyCommand nc -v -x 127.0.0.1:7890 %h %p

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