Skip to content

Instantly share code, notes, and snippets.

@laispace
Last active July 19, 2024 02:23
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
@pengyinghao
Copy link

Mac 的ssh 有办法吗? 我试了上面的还是不行哇

可以试试ssh使用443端口
To set this in your SSH configuration file, edit the file at ~/.ssh/config, and add this section:

Host github.com
    Hostname ssh.github.com
    Port 443
    User git

然后正常clone、pull都可以了

救了命了 老哥6666
这个是配在hosts 中吗

@Joeland4
Copy link

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