如何将远程仓库中的 hexo 博客安装到本地机器?

How to install hexo blog in a remote repo to local machine?

我在 github 页面中使用 hexo。我错误地删除了本地计算机中的本地文件。我尝试使用 git clonehttps://github.com/aaayumi/aaayumi.github.io.git 再次创建一个新的本地文件。然后我安装了 npm install hexo-cli -g.

我可以安装所有必要的文件,但是当我输入 hexo deploy 时, 它显示,

hexo deploy
Usage: hexo <command>

Commands:
  help     Get help on a command.
  init     Create a new Hexo folder.
  version  Display version information.

Global Options:
  --config  Specify config file instead of using _config.yml
  --cwd     Specify the CWD
  --debug   Display all verbose messages in the terminal
  --draft   Display draft posts
  --safe    Disable all plugins and scripts
  --silent  Hide output on console

For more help, you can use 'hexo help [command]' for the detailed information
or you can check the docs: http://hexo.io/docs/

有没有办法可以在本地使用hexo博客?

https://github.com/aaayumi/aaayumi.github.io中的代码不是您博客的源代码,它只是生成的内容。您需要的是 source 文件夹中的原始降价文件。

您将不得不使用 hexo init 重新创建博客并重写您的博文.. 很抱歉。

当然你可以直接看你的网站(http://ayumi-saito.com/)然后重写帖子,从那里复制粘贴应该不会花那么长时间。

另外,为了确保不再发生这种情况,您可以在不同的存储库中发布您的博客源文件。这样总有一个副本在某处。

PS:感谢您使用我的主题 ;)