Skip to content

Instantly share code, notes, and snippets.

@Dru89
Created May 3, 2013 16:14
Show Gist options
  • Save Dru89/5510529 to your computer and use it in GitHub Desktop.
Save Dru89/5510529 to your computer and use it in GitHub Desktop.
sample git hook for jekyll
GIT_REPO=$HOME/myrepo.git
TMP_GIT_CLONE=$HOME/tmp/myrepo
PUBLIC_WWW=/var/www/myrepo
git clone $GIT_REPO $TMP_GIT_CLONE
cd $TMP_GIT_CLONE
jekyll --no-auto $TMP_GIT_CLONE $PUBLIC_WWW
cd $HOME
rm -Rf $TMP_GIT_CLONE
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment