1、github绑好密匙后没法链接问题
但是通过在~/.ssh/config,修改为:
Host github.com
User zhenhx1995@163.com
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Port 443
可以clone ssh了,但我的github还是不能用clone https,会报错;。我猜https的问题可能还是得通过修改config来解决,但是现在找不到方法。
2、Hexo init需要clone https,导致后面一些列hexo操作不行。
我先找到init时clone的地址: Cloning hexo-starter https://github.com/hexojs/hexo-starter.git
自己clone: git clone git git@github.com:hexojs/hexo-starter.git
进去hexo-starter安装:npm install
进去hexo-starter:hexo start
在public里放文件就可以了。