hexo g -d或hexo g->hexo d -g->hexo s或hexo clean->hexo g->hexo d -g->hexo s部署
示例
Administrator@LKKJ0004 MINGW64 /e/Blog (hexo)
$ git pull git@github.com:snpmyn/snpmyn.github.io.git hexo
From github.com:snpmyn/snpmyn.github.io
* branch hexo -> FETCH_HEAD
Already up to date.
Administrator@LKKJ0004 MINGW64 /e/Blog (hexo)
$ git add source
warning: LF will be replaced by CRLF insource/_posts/博客搭建.md.
The file will have its original line endings in your working directory.
Administrator@LKKJ0004 MINGW64 /e/Blog (hexo)
$ git commit -m "fifth"
[hexo 305cf46] fifth
1 file changed, 34 insertions(+)
Administrator@LKKJ0004 MINGW64 /e/Blog (hexo)
$ git push origin hexo
Username for'https://github.com': snpmyn
muyang541527remote: Invalid username or password.
fatal: Authentication failed for'https://github.com/snpmyn/snpmyn.github.io.git/'
Administrator@LKKJ0004 MINGW64 /e/Blog (hexo)
$ muyang541527
bash: muyang541527: command not found
Administrator@LKKJ0004 MINGW64 /e/Blog (hexo)
$ git push origin hexo
Username for'https://github.com': snpmyn
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (5/5), 1.02 KiB | 1.02 MiB/s, done.
Total 5 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
To https://github.com/snpmyn/snpmyn.github.io.git
da365d3..305cf46 hexo -> hexo
Administrator@LKKJ0004 MINGW64 /e/Blog (hexo)
$ hexo clean
INFO Deleted database.
INFO Deleted public folder.
Administrator@LKKJ0004 MINGW64 /e/Blog (hexo)
$ hexo g -d
INFO Start processing
WARN ===============================================================
WARN ========================= ATTENTION! ==========================
WARN ===============================================================
WARN NexT repository is moving here: https://github.com/theme-next
WARN ===============================================================
WARN It's rebase to v6.0.0 and future maintenance will resume there
WARN ===============================================================
INFO Files loaded in 5.59 s
INFO Generated: CNAME
INFO Generated: index.html
INFO Generated: categories/index.html
INFO Generated: archives/index.html
INFO Generated: images/cc-by-nc.svg
INFO Generated: images/quote-l.svg
INFO Generated: archives/2018/03/index.html
INFO Generated: images/cc-by-sa.svg
INFO Generated: archives/2018/index.html
INFO Generated: categories/工具/index.html
warning: LF will be replaced by CRLF in 2018/03/06/博客搭建/index.html.
The file will have its original line endings in your working directory.
[master d519607] Site updated: 2018-03-16 09:47:01
2 files changed, 11 insertions(+), 7 deletions(-)
Branch 'master' set up to track remote branch 'master' from 'git@github.com:snpmyn/snpmyn.github.io.git'.
To github.com:snpmyn/snpmyn.github.io.git
cb58169..d519607 HEAD -> master
INFO Deploy done: git
Administrator@LKKJ0004 MINGW64 /e/Blog (hexo)
$ hexo s
INFO Start processing
WARN ===============================================================
WARN ========================= ATTENTION! ==========================
WARN ===============================================================
WARN NexT repository is moving here: https://github.com/theme-next
WARN ===============================================================
WARN It's rebase to v6.0.0 and future maintenance will resume there
WARN ===============================================================
INFO Hexo is running at http://localhost:4000/. Press Ctrl+C to stop.
INFO Bye!
Administrator@LKKJ0004 MINGW64 /e/Blog (hexo)
$