1、下载安装 git 2、生成 SSH 密钥 ssh-keygen -t rsa -C "email@com" -b 4096 3、配置gitlab 增加 SSH 密钥. 4、配置 git config --global http.sslVerify false(不然无法push)