Skip to content

Instantly share code, notes, and snippets.

@jmfayard
Last active December 21, 2015 21:58
Show Gist options
  • Save jmfayard/6371908 to your computer and use it in GitHub Desktop.
Save jmfayard/6371908 to your computer and use it in GitHub Desktop.
git commit -a -m "pushing new version at $(date)"
git status
jekyll build --destination ../_site
git checkout gh-pages
rm -rf *
cp -rf ../_site/* .
git add .
git commit -a -m "pushing new version at $(date)"
# sync with GitHub.app
open -a GitHub
# once it's done, go back to the master branch
git checkout master
# sync with GitHub.app
open -a GitHub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment