hexo-git-backup icon indicating copy to clipboard operation
hexo-git-backup copied to clipboard

git 仓库更改后,执行命令仍然是原来的仓库

Open TRHX opened this issue 5 years ago • 7 comments

以前的 coding 仓库地址类似于 [email protected]/xxxx,现在 coding 更新了,同一个仓库,但是仓库地址变了,现在是类似于 [email protected]/xxxx,我在 '_config.yml' 配置文件里面更改了仓库名,执行 hexo b 报错,显示的仍然是以前的仓库名。

'_config.yml' 配置文件:

报错信息:

我也尝试过重新生成 SSH,但是没有用,一直都是以前这个仓库名,请问应该如何解决?

TRHX avatar Apr 01 '20 07:04 TRHX

额,这个应该是git全局配置的原因。。我这个插件是没有加缓存的。。

coneycode avatar Apr 15 '20 11:04 coneycode

@TRHX 我的coding和gitee推送不了backup,deploy都是正常的。请问一下在coding里面需要设置什么吗? Snipaste_2020-04-26_11-25-33

andyyxw avatar Apr 26 '20 03:04 andyyxw

@TRHX 我的coding和gitee推送不了backup,deploy都是正常的。请问一下在coding里面需要设置什么吗? Snipaste_2020-04-26_11-25-33

coding 的仓库地址错了,coding 更新后有所改变,去你仓库看看

TRHX avatar Apr 26 '20 05:04 TRHX

这个有办法解决嘛?以前那个仓库删掉了,然后配置文件改成新仓库还是提示旧仓库不存在。重装插件也解决不了哎

zsbai avatar Jul 02 '20 16:07 zsbai

这个有办法解决嘛?以前那个仓库删掉了,然后配置文件改成新仓库还是提示旧仓库不存在。重装插件也解决不了哎

我没有解决,直接放弃了

TRHX avatar Jul 05 '20 03:07 TRHX

我周末试试,有结果在这儿同步。

coneycode avatar Jul 09 '20 03:07 coneycode

我也遇到该问题了. `~/hexo.bak   master ●  hexo b INFO Validating config INFO Start backup: git [master af73614] backup my website. 1 file changed, 577 deletions(-) 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. INFO Backup done: git配置文件如下# Deployment

Docs: https://hexo.io/docs/one-command-deployment

deploy: type: git repo: github: [email protected]:greenhandzdl/greenhandzdl.github.io.git branch: master

backup: type: git theme: nexmoe message: backup my website. repository: github: [email protected]:greenhandzdl/greenhandzdl.github.io.git,sources` 该bug导致hexo落后于master3次,希望早日解决。 另外,反复刷新ssh是没有用的。

greenhandzdl avatar Sep 30 '20 15:09 greenhandzdl