使用代理进行gitbash

847 阅读1分钟

环境描述:windows + gitbash

需要将clash的Port和本地代理的Port设置为相同

gitbash上设置好http和https的代理

git config --global http.proxy "http://127.0.0.1:1080"
git config --global https.proxy "https://127.0.0.1:1080"

之后git push即可成功 image.png