clone主题仓库

$ git clone [repo URL] themes/[theme name]

将仓库clone到本地后,打开themes/[theme name]文件夹,将.git隐藏文件夹删除才能正常push

更改根目录下_config.yml文件夹主题名称

theme: [theme name]

注意冒号前有空格

生产的应用程序构建到构建文件夹

$ npm run build

本地运行测试

hexo s

博客默认运行在localhost:4000,访问以检查主题是否正常,按CTRL+C结束运行

将更改push到远程

$ git status
$ git add .
$ git commit -m""
$ git push

等待GitHub完成部署
访问你的博客,至此,你的博客已经成功的更改了主题!