使用代理解决:
给git设置代理:

git config --global http.proxy "localhost:1020"

端口和ip可以更换。