GitHub加速访问
Aug. 19, 2020, 2:53 p.m.
read: 1624
加速GitHub,GitLab,Bitbucket等的访问:
git config --global https.proxy https://github.com.proxy socks5://127.0.0.1:port
git config --global https.proxy https://gitlab.com.proxy socks5://127.0.0.1:port
git config --global https.proxy https://bitbucket.org.proxy socks5://127.0.0.1:port
# ~/.ssh/config
Host github.com
User git
ProxyCommand nc -x 127.0.0.1:port %h %p
Host gitlab.com
User git
ProxyCommand nc -x 127.0.0.1:port %h %p
Host bitbucket.org
User git
ProxyCommand nc -x 127.0.0.1:port %h %p