eviLittle

Home Archives
2017-10-10

Learn github

how to init a repo from cli

  1. create a repo in github first
  2. cd ${your_project_path}
  3. git init
  4. git add .
  5. git commit -m “some message for this project.”
  6. git pull https://github.com/youraccount/yourproject.git
  7. git remote add origin https://github.com/youraccount/yourproject.git
  8. git push -u origin master
Share
2017-10-10

Learn hexo

learn how to use hexo to deploy github pages

deploy

install plugins

1
$ npm install hexo-deployer-git --save

deploy

1
$ hexo deploy

More info: Deployment

Share
2017-10-10

Hello World

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

Share

Archives

  • October 2017

Recent Posts

  • Learn github
  • Learn hexo
  • Hello World
© 2017 Rex Lee
Powered by Hexo
Home Archives