Last active
November 16, 2025 07:59
-
Star
(1,241)
You must be signed in to star a gist -
Fork
(280)
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 |
目前在 Windows 10 上使用 Clash
git config --global http.proxy socks5://127.0.0.1:7890 git config --global https.proxy socks5://127.0.0.1:7890如果只想对某个地址进行代理,比如对
github.com代理,就这样:git config --global http.https://git.521000.best.proxy socks5://127.0.0.1:7890参考了 @xpalive 的方式,SSH 还得看完全文
我的clash端口是7897,非常好使,甚至都不用改~/.ssh/config文件
但是只对 github.com 进行代理用这个写法没生效,期待其他大神解答
mac上的情况如楼上老哥说的,开着梯子的话得改成443端口,或者是关了梯子直连就可以正常push和clone了。问了ai,原理大概就是梯子干扰了SSH协议
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我的clash端口是7897,非常好使,甚至都不用改~/.ssh/config文件