$ apt-get install git nginx # or using any other package manager and web server
cd $HOME
mkdir -p blog blog.git tmp
cd blog.git
git --bare init
file $HOME/blog.git/hooks/post-receive
GIT_REPO=$HOME/blog.git
TMP_GIT_CLONE=$HOME/tmp/blog
PUBLIC_WWW=$HOME/blog
git clone $GIT_REPO $TMP_GIT_CLONE
jekyll --no-auto $TMP_GIT_CLONE $PUBLIC_WWW
rm -Rf $TMP_GIT_CLONE
exit
and chmod +x $HOME/blog.git/hooks/post-receive
Point your webserver's document root to $HOME/blog
and reload it.