Inspired by middleman-gh-pages, Jekyll Github Pages helps deploying Jekyll site to github gh-pages branch. However Github Pages basically supports Jekyll, they have a lot of restrictions. So you might want to use github pages just as a host for static pages. This gem provides rake tasks that automate the process of deploying a Jekyll site to Github Pages.
Add this line to your application's Gemfile:
gem 'jekyll-gh-pages'
You'll also need to require the gem in your Rakefile:
require 'jekyll-gh-pages'
Prepare the environment (only for the first time)
rake prepare
Watch the changes
rake watch
Build a Jekyll site
rake build
Deploy to gh-pages branch
rake deploy
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)