Deploy reveal.js slideshow on github-pages

Deploy reveal.js slideshow on github-pages was ridiculously easy.

Cloned reveal.js master branch to my local machine:

  1. git clone
  2. rm -Rf .git => this will remove the history - of you want to preserve history git remote rm origin and add your new remote 
  3. git remote add origin
  4. git add .
  5. git commit -m "Initial commit"
  6. git push origin master

In order to push master to github pages you should create a branch names gh-pages and it must be named that, the commit & push to this branch and about 2 minuets later you can browse to your presentation on gh-pages.

Create a branch:

git branch hg-pages
git push origin gh-pages

updating this "site" can be done by editing the stuff you want on the "master" branch, then merge those changes in the gh-pages branch and finally push those changes to the remote gh-pages which will automatically deploy youe reveal.js presentaion.

the merge sould look somthing like:

hagzag-Lap-hagzag:chef_workshop_presentaion(master) $ git checkout gh-pages 

hagzag-Lap-hagzag:chef_workshop_presentaion(gh-pages) $ git merge master 
Updating 0f4f1e1..fb0d73d


 css/custom.css |   4 ++++

 index.html     | 104 +++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------

 2 files changed, 53 insertions(+), 55 deletions(-)

 create mode 100644 css/custom.css

git push origin gh-pages


the url is built from the followng pattern:


in this case:


Hope you find this useful !