配置socks5代理
git config --global http.proxy socks5 127.0.0.1:10809
git config --global https.proxy socks5 127.0.0.1:10809
配置http代理
git config --global http.proxy 127.0.0.1:10809
git config --global https.proxy 127.0.0.1:10809
git config --global http.proxy socks5 127.0.0.1:10809
git config --global https.proxy socks5 127.0.0.1:10809
git config --global http.proxy 127.0.0.1:10809
git config --global https.proxy 127.0.0.1:10809
用 ssh 连接应该就不会出现这个问题,我之前也是一直用 http 方式克隆仓库,很多时候会出现这个问题,改成 ssh 之后就没这个烦恼了