后台挂了那啥,找到梯子用的端口(比如我的是7078)并设置 git config --global http.proxy localhost:7078 I hope this can save someone's two hours.