github与git链接问题
来源:互联网 发布:高校网络教育阳光招生服务平台 编辑:程序博客网 时间:2024/06/09 22:56
在Ubuntu中git与github链接出现问题
问题描述:git链接多个github账户
网上相关文章很多,自己做了一次,下面是简述
1:首先你自己之前肯定有原来账户,比如我之前已经存在了一个账户
私钥和公钥在./ssh文件夹下面,这个时候再需要创建一个账户
2:老途径,创建公钥和私钥
ssh-keygen -t rsa -C “hello@qq.com”
出现enter file in which to save the key 时候,要自己创建一个名,比如MY ,这个时候将my和my.pub存在.ssh文件下面。
3:这个时候的关键一部,使git识别两个私钥
touch config
Host github.com HostName github.com PreferredAuthentications publickey IdentityFile ~/.ssh/id_rsa Host my.github.com HostName github.com PreferredAuthentications publickey IdentityFile ~/.ssh/my
测试:
ssh -t git@github.com
ssh -t git@my.github.com
参考:
git链接多个github
git多个github出现问题
阅读全文
0 0
- github与git链接问题
- git 与github链接过程
- Github 使用 与 Git的链接
- Github与git联机问题!
- git链接github
- git使用小结(安装,git添加版本库,git与github链接)
- 【GIT】本地git链接到github
- Eclipse Neon 使用Git与Github 方法与问题
- Git提交GitHub问题
- Git/GitHub问题随记
- 【git】git与Github初探
- git与github区别
- git与github博客
- git与github
- Git与Github资料
- Android git与github
- Git与Github入门
- Git与github使用
- 流程图的制作技巧分享,手把手教你如何绘制流程图
- 炼数成金优惠码
- 用SQL数据库做多表关联应怎样设计库结构
- Android 中线程和线程池
- Oracle 简单介绍
- github与git链接问题
- 洛谷 P2424 约数和
- TP5 在模板读出数据
- codeforces 863F Almost Permutation
- 字节流与字符流的区别详解
- 工作日常记录 2017-09-22
- 【python+autohotkey】优雅地在markdown中插入图片
- Linux安装mysql
- TCP/IP的原理与介绍