Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

备份报错 #27

Closed
Coande opened this issue Dec 8, 2018 · 1 comment
Closed

备份报错 #27

Coande opened this issue Dec 8, 2018 · 1 comment

Comments

@Coande
Copy link

Coande commented Dec 8, 2018

hexo版本:3.8.0

_config.yml中配置如下:

backup:
  type: git
  theme: landscape,yilia
  repository:
    github: git@github.com:Coande/coande.github.io.git,hexo

报错如下:

INFO  Start backup: git
INFO  Setting up Git-Backup deployment...
INFO  F:\__my__\blog\themes\yilia\.git
INFO  First
events.js:167
      throw er; // Unhandled 'error' event
      ^

Error: spawn rm ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
    at onErrorNT (internal/child_process.js:407:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)
    at onErrorNT (internal/child_process.js:407:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
@Coande
Copy link
Author

Coande commented Dec 8, 2018

已解决,手动删除F:\__my__\blog\themes\yilia\.git就可以了。BTW,我本机使用的ssh key需要密码,会导致错误:

git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

可以再生成一个无密码key,把公钥添加到github,创建文件~/.ssh/config设置github使用无密码key,如:

Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_nopassphrase

@Coande Coande closed this as completed Dec 8, 2018
@TRHX TRHX mentioned this issue Jan 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant