git 生成 ssh key,执行下面代码即可:

git config --global  --list 
git config --global  user.name "这里换上你的用户名"
git config --global user.email "这里换上你的邮箱"
ssh-keygen -t rsa -C "这里换上你的邮箱"

id_rsa.pub 把这个文件当中的 key 放到 服务器配置里面即可。

参考: https://blog.csdn.net/lqlqlq007/article/details/78983879 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

标签: git

添加新评论