问题描述: 是这样子的,之前看到一个文章用hexo搭建一个博客,教程是这个,根据这个一步步走下来,提交到A账号的的github是没有问题的。
但是我再想搭建一个,然后根据这个教程一步步走下来,然后到提交的B账号的时候hexo clean && hexo g && hexo d
, 发现一个致命的bug,怎么都解决不了~~如下图
报错内容
remote: Permission to naihe138/naihe138.github.io.git denied to blueSky1115.
fatal: unable to access 'https://github.com/naihe138/naihe138.github.io.git/': The requested URL returned error: 403
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: remote: Permission to naihe138/naihe138.github.io.git denied to blueSky1115.
fatal: unable to access 'https://github.com/naihe138/naihe138.github.io.git/': The requested URL returned error: 403
at ChildProcess.<anonymous> (/Users/naihe/naihe138.github.io/node_modules/hexo-util/lib/spawn.js:37:17)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:477:12)
求大神帮助解决一下,困扰了好久好久~~~
碰到一个一模一样的问题
解决方案是在 hexo _config.yml部署的repo地址改用ssh而不是用https
但这是为什么呢?好奇怪