Check that you have Ruby v2.1.0 or higher. We recommend using RVM to install Ruby if you don't have it yet.
ruby --version
Install Bundler.
gem install bundler
Install project dependencies using Bundler.
bundle install
Build and run the project on http://localhost:4000
using Bundler.
bundle exec jekyll serve
Read more here.
Github Pages uses the dependencies and versions listed here.