How to manage your Hexo blog source code Posted on 2017-01-07 Demo Repository How to add a new branch to save hexo source code1234567cd /path/to/you/hexogit initgit checkout -b sourcecodegit remote add https://github.com/shushanxingzhe/shushanxingzhe.github.io.gitgit add .git commit -m 'save source code'git push origin sourcecode:sourcecode Get source from Github and add new blogClone source1git clone -b sourcecode https://github.com/shushanxingzhe/shushanxingzhe.github.io.git github.io Update dependency12cd github.ionpm update Create New Blog1234hexo new "New Blog Title Here"#write you blog in the source/_posts directoryhexo s#run server on local,and check it Generate and Deploy1hexo d -g Update source code to Github123git add .git commit -m 'add new blog'git push