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

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

Open
TRHX opened this issue Apr 1, 2020 · 7 comments
Open

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

TRHX opened this issue Apr 1, 2020 · 7 comments

Comments

@TRHX
Copy link

TRHX commented Apr 1, 2020

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

'_config.yml' 配置文件:

报错信息:

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

@coneycode
Copy link
Owner

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

@andyyxw
Copy link

andyyxw commented Apr 26, 2020

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

@TRHX
Copy link
Author

TRHX commented Apr 26, 2020

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

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

@zsbai
Copy link

zsbai commented Jul 2, 2020

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

@TRHX
Copy link
Author

TRHX commented Jul 5, 2020

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

我没有解决,直接放弃了

@coneycode
Copy link
Owner

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

@greenhandzdl
Copy link

我也遇到该问题了.
`~/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: git@github.com:greenhandzdl/greenhandzdl.github.io.git
branch: master

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

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

5 participants