Build a blog on GitHub and is based Hexo


title: Hexo and build a blog based on GitHub

Welcome to Fofade's Blog!

Build mind

Large and small, universities for two years, playing a lot, learned a lot.

Looking back, the once unknown, it is now known, but who will, but now they will not.

In order not worthless, but also to make himself the same question is no longer looking for a long time, I thought of writing blog.

On the server I wrote before, but always because of this or that reason, wrote the blog lost a lot.

I tried a third-party system CSDN blog like, I can not stand their subject matter and advertising.

After careful research and thinking, and ultimately determine settled at GitHub.

Git command

$ git add .  

$ git commit -m "detail" # 提交

$ git push origin master # 提交到master分支

$ hexo generate -d # 生成网站并部署到GitHub当前分支上

$ git branch -D master # 删除master分支

$ git checkout master # 切换到master分支

Daily modification

.Md the edited file (MarkDown documents prepared) placed under "/ source / _posts /" directory and then submitted to GitHub

Submission process:


$ git add .

$ git commit -m "detail"

$ hexo generate # 生成网站

$ git push origin master # 提交到master分支

Other possible uses of command


$ hexo generate -d  时报错: 无法找到 git

solution:


$ npm install hexo-deployer-git --save

Guess you like

Origin www.cnblogs.com/fofade/p/10977669.html