小tips: add pub key to GitHub

这个是工作中经常用到的问题,每次都要搜索,所以现在总结在这里。

因为要同步github的代码,又不想每次clone都输入秘密

step1:检查现有ssh密钥

复制代码
ls -al ~/.ssh

网站说明说哪一种密钥都可以

  • id_rsa.pub
  • id_ecdsa.pub
  • id_ed25519.pub

选择其中一个复制

复制代码
cat ~/.ssh/id_rsa.pub

step2:

点击个人头像,再点击setting,再点击SSH and GPG keys

点击 Add new SSH Key 添加即可。

这次再拉自己的git库就不用输入密码了

git clone git@github.com:xxx

参考github文档

新增 SSH 密钥到 GitHub 帐户 - GitHub 文档

相关推荐
zhangfeng11333 天前
win7 R 4.4.0和RStudio1.25的版本兼容性以及系统区域设置有关 导致Plots绘图面板被禁用,但是单独页面显示
开发语言·人工智能·r语言·生物信息
zhangfeng11334 天前
错误于make.names(vnames, unique = TRUE): invalid multibyte string 9 使用 R 语言进行数据处理时
开发语言·r语言·生物信息
zhangfeng11334 天前
R geo 然后读取数据的时候 make.names(vnames, unique = TRUE): invalid multibyte string 9
开发语言·chrome·r语言·生物信息
dundunmm1 个月前
【论文阅读】SIMBA: single-cell embedding along with features(2)
论文阅读·人工智能·embedding·生物信息·单细胞·多组学·细胞类型识别
dundunmm1 个月前
【论文阅读】SIMBA: single-cell embedding along with features(1)
论文阅读·深度学习·神经网络·embedding·生物信息·单细胞·多组学
dundunmm1 个月前
【每天一个知识点】生物的数字孪生
人工智能·数字孪生·生物信息·单细胞
生信分析笔记1 个月前
全基因组关联分析(GWAS)中模型参数选择:MLM、GLM与FarmCPU的深度解析
gwas·生物信息
dundunmm2 个月前
【论文阅读】Nonparametric clustering of RNA-sequencing data
论文阅读·聚类·生物信息·细胞聚类·非参聚类
dundunmm3 个月前
【论文阅读】Multi-Class Cell Detection Using Spatial Context Representation
论文阅读·深度学习·分类·聚类·生物信息·深度聚类·细胞识别
纪伊路上盛名在3 个月前
jupyter内核崩溃
前端·数据库·jupyter·生物信息·基因组·k-mer