首页 > hexo 的git pull 问题

hexo 的git pull 问题

想换hexo主题

localhost:hexo chenkuntao$ cd themes
localhost:themes chenkuntao$ cd next
localhost:next chenkuntao$ git pull
Already up-to-date.

但是总是出现Already up-to-date. 看了网页没有更新 怎么办


config启用主题了没?
主题如果是git下来的,需要更新可以使用git merge,详情可以去看我的博客linghutf,当时我也遇到过这种问题。


你光下载主题没用啊、步骤如下


你这只是更新主题的源码,还没有生成网页文件,当然看不到网页的变化啦

更新主题后,要打开终端,切换到 hexo 工程所在文件夹,运行 hexo g 才能重新生成网页文件。

详见 Hexo 文档
https://hexo.io/zh-cn/docs/commands.html


hexo -d 才是发布部署


怎么是用git命令,使用自带的命令试试 hexo -d g

【热门文章】
【热门文章】