Configure this site locally for development

Configure the repository locally for development

January 3, 2017 - 1 minute read -
#jekyll #ruby #development

Chalk Template

Install ruby 2.3.3

rbenv install 2.3.3
rbenv global 2.3.3
ruby -v

Install site

git clone
git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=36000'
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all

Run local development server

bundle exec jekyll serve --drafts

Deploy to github master branch


References - Github
How to fetch all git branches - StackOverflow