Last active
March 4, 2026 06:07
-
Star
(1,241)
You must be signed in to star a gist -
Fork
(279)
You must be signed in to fork a gist
-
-
Save laispace/666dd7b27e9116faece6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
感谢大佬。之前一直写在C:\Users\用户名.ssh\config 里没用,按照你的方式改git目录下的ssh_config,成功让git走代理了。
只是还是不明白,无论怎么设置http proxy ,git操作时观测梯子流量始终没动,git速度也慢,git死活不走梯子。