Github Pages Quick Start
Websites for you and your projects. Hosted directly from your GitHub repository. Just edit, push, and your changes are live.
Create a repository
Head over to GitHub and create a new repository named username.github.io, where username is your username (or organization name) on GitHub.
If the first part of the repository doesn’t exactly match your username, it won’t work, so make sure to get it right.
Clone the repository
Go to the folder where you want to store your project, and clone the new repository:
1 | ~ $ git clone https://github.com/username/username.github.io |
Hello World
Enter the project folder and add an index.html file:
1 | ~ $ cd username.github.io |
Push it
Add, commit, and push your changes:
1 | ~ $ git add --all |
…and you’re done!
Fire up a browser and go to http://username.github.io.
OK
Hexo Quick Start
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.
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