coneycode / hexo-git-backup

you can use it to backup your blog into git.
MIT License
458 stars 66 forks source link

运行hexo backup出错 #7

Closed zhangleijuly closed 8 years ago

zhangleijuly commented 9 years ago

配置写 backup: type: git theme: tranquilpeak repository: github: git@github.com:XXX/XXX.git,master 提示 fatal: 'github' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 配置写 backup: type: git theme: tranquilpeak repository: gitcafe: git@github.com:XXX/XXX.git,master 提示 fatal: 'gitcafe' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 是不是github/gitcafe这个关键字的处理出问题了

coneycode commented 9 years ago

你这个是因为没有找到github or gitcafe上的项目吧?

zhangleijuly commented 9 years ago

但是项目是有的,不知道是什么原因找不到呢

coneycode commented 9 years ago

这个应该是你的项目没有配置好,这个错误表示连接不到远程git,你在本地 ssh -T git@github.com试试呢?

zhangleijuly commented 9 years ago

这个指令是可以连接的,另一个issue和我遇到的问题应该是同一个

coneycode commented 9 years ago

抱歉,最近比较忙,反馈不够及时,我这两天看看。

gdky005 commented 9 years ago

只回复妹子的,。。。

vssli commented 8 years ago

I got the same problem. Cannot find the respository. Do you people fix this problem?

coneycode commented 8 years ago

有人帮忙解答了这个问题。 我最近比较忙,稍后会fix掉这个bug。目前可以先这么解决。

方法1: 执行如下命令 git remote add github git@github.com:xxx/xxx.git hexo b

方法2: 删除本地目录下的 .git 目录 然后执行命令 hexo b 直到看到如下输出:

[new branch] master -> master Branch master set up to track remote branch master from github. INFO Backup done: git

end


gdky005 commented 8 years ago

N 天后,又回到这里了, 楼上的答案确实解决了问题。