GitHub Pages – Static, Fast, and Free.



GitHub Pages – Static, Fast, and Free.

0 0


ghpagestalk

Tufts Computer Science Exchange lightning talk about GitHub Pages

On Github acannistra / ghpagestalk

GitHub Pages

Static, Fast, and Free.

By @tonycannistra

What's GitHub Pages?

  • Free static hosting.
  • Quick and easy if you know Git.
  • Static, but Powerful.

What can I use it for?

Two Types.

  • Standalone Pages
    personal website, standalone organization
  • Repo Pages
    project pages

Let's make a repo live.

Branch.
~> git branch gh-pages
Push.
~> git push origin gh-pages
That's it.
You're live at <username>.github.io/<repo-name>

Yep. That's it.

All the files in your <repo-name> repository are now live on the internet.

Like http://acannistra.github.io/ghpagestalk/README.md

But Wait.

Help! My changes aren't going to the internet!

Important: only changes made on the gh-pages branch make it to the intertubes.

Made lots of changes on master that you want to move into gh-pages?

~> git checkout gh-pages
~> git rebase master

User Pages

Make A New Repo called <username>.github.io
That's it. Your repo's live at <username>.github.io

Note: no need to worry about a gh-pages branch. All content for user pages is served from master.

This is only the surface.

Blogs

Templates

Automatic Generation

Custom Domain Names

Thanks!

Follow me: @tonycannistra

github.com/acannistra

{built with reveal.js}