We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git clone https://github.com/owner/git.git
git clone [email protected]:owner/git.git
git config --global http.proxy "http://127.0.0.1:8080" git config --global https.proxy "http://127.0.0.1:8080"
git config --global http.proxy "socks5://127.0.0.1:1080" git config --global https.proxy "socks5://127.0.0.1:1080"
git config --global --unset http.proxy git config --global --unset https.proxy
修改 ~/.ssh/config 文件(不存在则新建):
~/.ssh/config
# 必须是 github.com Host github.com HostName github.com User git # 走 HTTP 代理 # ProxyCommand socat - PROXY:127.0.0.1:%h:%p,proxyport=8080 # 走 socks5 代理(如 Shadowsocks) # ProxyCommand nc -v -x 127.0.0.1:1080 %h %p
The text was updated successfully, but these errors were encountered:
No branches or pull requests
分辨需要设置的代理
一、HTTP 形式
走 HTTP 代理
走 socks5 代理(如 Shadowsocks)
取消设置
二、SSH 形式
修改
~/.ssh/config
文件(不存在则新建):The text was updated successfully, but these errors were encountered: