小结: 此功能对于两个本地文件夹上传到两个不同github有利我才写的这篇博客
因为想要上传到github,做第二个主题博客遇到了些难题
- 申请一个新的邮箱(此处我想到了126网易笨邮箱)
- 创建一个新的github账号 (此处省略无数根头发)
vim ~/.ssh/id_rsa.pub
在setting里设置ssh密钥- 然后更改repo地址
很不幸此时上传出现了问题
1 | Error: Permission to xxx denied to xxx |
真是愁傻了人!!!!!!库里奥 于是 ↓
百度程序员请战
三种种解决方式
换台电脑继续配置密钥 [显然我没有钱]
用虚拟机或者再在电脑上装双系统 [太浪费时间]
设置两个密钥(也可以多个看你心情)
显然第三种方式可取
步骤1
创建一个新的密钥
eg: 创建一个叫aysee的密钥
1 | ssh-keygen -t rsa -C "YOUR_EMAIL@YOUREMAIL.COM" -f ~/.ssh/aysee |
步骤2
新建仓库
然后把显示出来的密钥粘贴到github 的setting SSH密钥里
步骤3
在电脑**~/.ssh/**里 touch config
一个配置文件让git_bash 能看出来谁上传的(Host)
我看出来了很多悲剧的发生
1 | #Default GitHub |
其中
Host
和IdentityFile
非常重要 [笨机器识别就靠这玩意]
步骤4
- 修改主题配置根目录文件
+++
: 仓库名×××××××××××
: 仓库地址
1 | deploy: |
注意: 这里的不是github.com
而是github-boreas6
上传到 github 的,对仓库有读写权的现在两位
完美!结束
1 | Enumerating objects: 69, done. |
总结
感觉把博客加上了吉他谱模块造成请求太多而卡顿于是另开一个博客
链接我新的网抑云
: https://pdxwyy.github.io/
快来看看吧 ^-^