mac中安装git

第一步:检查是否已经有了,如果有了,那么直接第三步

第二步:生成ras的密钥,后面填写自己相应的邮箱名称

第三步:拷贝生成的公钥

cat ~/.ssh/id_rsa.pub
ssh-keygen -t rsa -C "***@****.com"
pbcopy < ~/.ssh/id_rsa.pub
然后直接复制去你的github仓库添加公钥即可

参考文献:
https://blog.csdn.net/Rodulf/article/details/52971260?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromBaidu-1.control&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromBaidu-1.control

posted @ 2021-01-04 12:04  HKnight  阅读(141)  评论(0编辑  收藏  举报