文章目录
  • 设置git身份信息:
1
2
huangsengolndeMacBook-Pro:hexo-blog huangaengoln$ git config --global user.name "univer2012"
huangsengolndeMacBook-Pro:hexo-blog huangaengoln$ git config --global user.email "1054880335@qq.com"
  • 安装hexo git插件
1
2
3
4
5
6
huangsengolndeMacBook-Pro:hexo-blog huangaengoln$ npm install hexo-deployer-git --save
(node:59100) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
hexo-site@0.0.0 /Users/huangaengoln/Documents/hexo-blog
└── hexo-deployer-git@0.2.0
huangsengolndeMacBook-Pro:hexo-blog huangaengoln$
  • 发布更新博客
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
huangsengolndeMacBook-Pro:hexo-blog huangaengoln$ hexo d -g
INFO Start processing
INFO Files loaded in 375 ms
INFO Generated: 2017/04/23/1How-to-change-App-theme-color/index.html
INFO Generated: archives/2017/04/index.html
INFO Generated: 2017/04/22/hello-world/index.html
INFO Generated: index.html
INFO Generated: archives/2017/index.html
INFO Generated: archives/index.html
INFO Generated: tags/thinkive/index.html
INFO Generated: fancybox/fancybox_loading.gif
INFO Generated: fancybox/fancybox_sprite.png
INFO Generated: fancybox/blank.gif
INFO Generated: fancybox/fancybox_overlay.png
INFO Generated: fancybox/fancybox_loading@2x.gif
INFO Generated: fancybox/fancybox_sprite@2x.png
INFO Generated: css/fonts/FontAwesome.otf
INFO Generated: fancybox/helpers/fancybox_buttons.png
INFO Generated: css/fonts/fontawesome-webfont.woff
INFO Generated: css/fonts/fontawesome-webfont.eot
INFO Generated: css/fonts/fontawesome-webfont.ttf
INFO Generated: fancybox/helpers/jquery.fancybox-buttons.js
INFO Generated: fancybox/jquery.fancybox.css
INFO Generated: js/script.js
INFO Generated: fancybox/helpers/jquery.fancybox-thumbs.css
INFO Generated: fancybox/helpers/jquery.fancybox-buttons.css
INFO Generated: fancybox/helpers/jquery.fancybox-thumbs.js
INFO Generated: fancybox/helpers/jquery.fancybox-media.js
INFO Generated: css/style.css
INFO Generated: fancybox/jquery.fancybox.js
INFO Generated: fancybox/jquery.fancybox.pack.js
INFO Generated: css/fonts/fontawesome-webfont.svg
INFO Generated: css/images/banner.jpg
INFO 30 files generated in 1.27 s
INFO Deploying: git
INFO Setting up Git deployment...
Initialized empty Git repository in /Users/huangaengoln/Documents/hexo-blog/.deploy_git/.git/
[master (root-commit) 4aa265c] First commit
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 placeholder
INFO Clearing .deploy_git folder...
INFO Copying files from public folder...
[master 8bafa3a] Site updated at 2017-04-23 02:10:01
31 files changed, 6454 insertions(+)
create mode 100644 2017/04/22/hello-world/index.html
create mode 100644 2017/04/23/1How-to-change-App-theme-color/index.html
create mode 100644 archives/2017/04/index.html
create mode 100644 archives/2017/index.html
create mode 100644 archives/index.html
create mode 100644 css/fonts/FontAwesome.otf
create mode 100644 css/fonts/fontawesome-webfont.eot
create mode 100644 css/fonts/fontawesome-webfont.svg
create mode 100644 css/fonts/fontawesome-webfont.ttf
create mode 100644 css/fonts/fontawesome-webfont.woff
create mode 100644 css/images/banner.jpg
create mode 100644 css/style.css
create mode 100644 fancybox/blank.gif
create mode 100644 fancybox/fancybox_loading.gif
create mode 100644 fancybox/fancybox_loading@2x.gif
create mode 100644 fancybox/fancybox_overlay.png
create mode 100644 fancybox/fancybox_sprite.png
create mode 100644 fancybox/fancybox_sprite@2x.png
create mode 100644 fancybox/helpers/fancybox_buttons.png
create mode 100644 fancybox/helpers/jquery.fancybox-buttons.css
create mode 100644 fancybox/helpers/jquery.fancybox-buttons.js
create mode 100644 fancybox/helpers/jquery.fancybox-media.js
create mode 100644 fancybox/helpers/jquery.fancybox-thumbs.css
create mode 100644 fancybox/helpers/jquery.fancybox-thumbs.js
create mode 100644 fancybox/jquery.fancybox.css
create mode 100644 fancybox/jquery.fancybox.js
create mode 100644 fancybox/jquery.fancybox.pack.js
create mode 100644 index.html
create mode 100644 js/script.js
delete mode 100644 placeholder
create mode 100644 tags/thinkive/index.html
To github.com:univer2012/univer2012.github.io.git
* [new branch] HEAD -> master
Branch master set up to track remote branch master from git@github.com:univer2012/univer2012.github.io.git.
INFO Deploy done: git
huangsengolndeMacBook-Pro:hexo-blog huangaengoln$

发布成功后,访问https://univer2012.github.io/看下成果

来自:零基础免费搭建个人博客-hexo+github

文章目录