参考: https://git-scm.com/book/zh/v2/%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%8A%E7%9A%84-Git-%E7%94%9F%E6%88%90-SSH-%E5%85%AC%E9%92%A5 生成密钥对 ssh-keygen -o 获取公钥并在github设置: ~/.ssh/id_rsa.pub 添加到github即可使用git拉取仓库: