Git中使用代理的临时解决方案

git bash 中输入:

git config --global http.proxy 'socks5://127.0.0.1:7890'
git config --global https.proxy 'socks5://127.0.0.1:7890'

可以在本次bash中临时使用代理。