-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Greet edited this page Oct 12, 2020
·
6 revisions
- 使用git clone 拷贝仓库(默认分支hexo)
$ git clone git@github.com:Guanruiting/Guanruiting.github.io.git
- 在本地新拷贝的文件夹下通过Git bash依次执行下列指令:
$ npm install hexo
$ npm install
$ npm install hexo-deployer-git
记得,不需要hexo init这条指令
Create a new post
$ hexo new "My New Post"
运行本地服务 Run local server
$ hexo server
// hexo分支
$ git add .
$ git commit -m "注释"
$ git push origin hexo
$ hexo g -d
两个命令也可分开执行
- 生成静态内容
//Generate static files
$ hexo generate
- 部署到Github
// Deploy to remote sites
$ hexo deploy