https://git-scm.com/downloads
① cd ~/.ssh/ 【如果没有对应的文件夹,则执行 mkdir ./.ssh】
② git config --global user.name "xb12369"
③ git config --global user.email "1234@qq.com"
④ ssh-keygen -t rsa -C "1234@qq.com"
git生成并添加SSH key
原文:https://www.cnblogs.com/nhdlb/p/11864899.html