在git bash里设置代理:

export https_proxy=http://192.168.0.10:8118
export http_proxy=http://192.168.0.10:8118
git config --global http.proxy 'http://192.168.0.10:8118'
git config --global https.proxy 'http://192.168.0.10:8118'