V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
hongfeiyu
V2EX  ›  GitCafe

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

  •  
  •   hongfeiyu · 2016-01-12 13:33:15 +08:00 · 7412 次点击
    这是一个创建于 3236 天前的主题,其中的信息可能已经有所发展或是发生改变。

    部署的时候是不是两个 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)
    
    hongfeiyu
        1
    hongfeiyu  
    OP
       2016-01-12 15:30:12 +08:00
    求解啊求解,为什么没有大神来解答一下?
    如果 gitcafe 和 github 的用户名不一样的话
    就得 git config --global user.name 两次
    他们不会冲突吗?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1101 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 22:58 · PVG 06:58 · LAX 14:58 · JFK 17:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.