Github代理设置

Github代理设置

git config –global http.proxy http://127.0.0.1:10809

git config –global https.proxy https://127.0.0.1:10809

git config –global http.proxy socks5://127.0.0.1:10808

git config –global https.proxy socks5://127.0.0.1:10808

取消代理

git config –global –unset http.proxy

git config –global –unset https.proxy

奇怪的是设置http代理后用sock地址下载比用http地址下载更快

git config –global url.”git@github.com:”.insteadOf git://github.com/

1
2
3
4
5
6
7
8
9
10
11
12
➜  ~ omz update
Updating Oh My Zsh
fatal: remote error:
The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
There was an error updating. Try again later?
➜ ~ git config --global url."git@github.com:".insteadOf git://github.com/
➜ ~ omz update
Updating Oh My Zsh
master

Features:

Github代理设置
http://example.com/2022/05/16/运维/github代理设置/
作者
UncleBryan
发布于
2022年5月16日
许可协议