search

Home  >  Q&A  >  body text

git操作,hexo部署到gitcafe的分支

一开始我是直接把整个文件夹全pushmaster

然后建了一个分支gitcafe-pages,想把hexo/public下的文件都传上去,但是这样分支下面始终都是以\public文件夹开始,这样我访问分支地址的时候必须得加一层../gitcafe.io/mytest/public/,这就不对了


难道是需要我在publicgit init一个新的仓库吗,这样的话,项目代码和内部的发布文件就分开了!
同上,把所有的代码都传到master后,用 hexo d 发布的时候,html内容都会在在仓库的分支gitcafe-pages\.deploy_git文件夹下,访问的时候也要加个路径,不在根目录就不对了, :-(

PHPzPHPz2811 days ago528

reply all(1)I'll reply

  • 漂亮男人

    漂亮男人2017-05-02 09:24:36

    From your description, you used the git push command to push it?
    After you create a pages warehouse, fill in the warehouse address in the hexo configuration file. After writing the blog, use hexo g to generate static files, and use hexo d to deploy them. At this time, your static files are deployed, and the theme things are It won't be deployed.

    reply
    0
  • Cancelreply