hexo 博客同时部署到 github 和 gitcafe 的一个问题

2016-01-12 13:33:15 +08:00
 hongfeiyu

部署的时候是不是两个 git 用的邮箱必须是同一个?
因为这样才会 ssh 一样
还是说不一样也可以?
然后多生成一个 ssh?

这个报错是因为没有同步 ssh 吗?
Warning: Permanently added 'gitcafe.com,124.42.117.218' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: Warning: Permanently added 'gitcafe.com,124.42.117.218' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

at ChildProcess.<anonymous> (D:\hexo\node_modules\hexo-deployer-git\node_modules\hexo-util\lib\spawn.js:42:17)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818: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:469:12)
7286 次点击
所在节点   GitCafe
1 条回复
hongfeiyu
2016-01-12 15:30:12 +08:00
求解啊求解,为什么没有大神来解答一下?
如果 gitcafe 和 github 的用户名不一样的话
就得 git config --global user.name 两次
他们不会冲突吗?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/250121

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX