search

Home  >  Q&A  >  body text

github-pages - #hexo#静态博客框架中.deploy_git目录是什么,起到什么作用?

初学hexo,用hexo+github-pages创建blog,目录下的.deploy_git目录是什么,它的作用是什么?可以删掉吗?

另,把问题扩展一下:

hexo初始化后的目录结构只有以下这些:

而再安装主题后多出好多目录出来,我很困惑这些目录产生的缘由

我的想法是:.gitignore,db.json和.deploy_git是由于github-pages仓库中生成的(但我不太清楚db.json和.deploy_git具体的作用)

node_modules和public这两个目录的产生应该是由于主题的安装

In conclusion,红框中各个目录的产生原因及其担任的角色,求大神解惑

ringa_leeringa_lee2764 days ago714

reply all(1)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-02 09:41:41

    • .deploy_git: This should be a file for git deployment. For example, if you want to deploy the blog you have written to GitHub Pages, you can use git to deploy the plug-in, and the plug-in will create this directory

    • node_modules: This should be the plug-in/module directory used by node.js and installed in the current "project/directory". After all, hexo is installed through npm, right?

    • public: This should be the directory of the website compiled by hero

    • .gitignore: This is a git configuration file, which defines content settings that are not included in git management

    • db.json: I don’t know this either.

    reply
    0
  • Cancelreply