Configure this site locally for development

Configure the repository xRahul.github.io 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 https://github.com/xRahul/xRahul.github.io.git
git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=36000'
cd xRahul.github.io/
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
bin/setup

Run local development server

bundle exec jekyll serve --drafts

Deploy to github master branch

bin/deploy


References

rahulja.in
xRahul.github.io - Github
How to fetch all git branches - StackOverflow