打开C:\users\username\.gitconfig
文件,最后加上
[http]
proxy = socks5://127.0.0.1:1080
[https]
proxy = socks5://127.0.0.1:1080
[git]
proxy = socks5://127.0.0.1:1080
记录一下,省的下次遇到再找,感谢大佬
原文地址 https://kassadin.moe/2019/07/17/003-how-to-set-proxy-for-Github-desktop/