一开始我是直接把整个文件夹全push
到master
然后建了一个分支gitcafe-pages
,想把hexo
的/public
下的文件都传上去,但是这样分支下面始终都是以\public
文件夹开始,这样我访问分支地址的时候必须得加一层../gitcafe.io/mytest/public/
,这就不对了
难道是需要我在public
下git init
一个新的仓库吗,这样的话,项目代码和内部的发布文件就分开了!
同上,把所有的代码都传到master
后,用 hexo d
发布的时候,html
内容都会在在仓库的分支gitcafe-pages
的\.deploy_git
文件夹下,访问的时候也要加个路径,不在根目录就不对了, :-(
漂亮男人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.