設(shè)置代理方法即可解決
git config --global http.proxy "localhost:port"
git config --global http.proxy "127.0.0.1:8080"
http
代理端口
Mac
端在系統(tǒng)偏好設(shè)置
->網(wǎng)絡(luò)
->高級
->代理
->網(wǎng)頁代理/安全網(wǎng)絡(luò)代理查看
完成后取消設(shè)置
git config --global --unset http.proxy