1、socks5代理客户端,请自行搭建 2、 在git-bash中创建config文件 touch ~/.ssh/config 3、 添加config文件的内容 Host github.com ProxyCommand connect -S 127.0.0.1:1080 -a none %h %p ServerAliveInterval 10 4、搞定