Skip to content

Instantly share code, notes, and snippets.

@WillPapper
Created May 1, 2014 13:54
Show Gist options
  • Save WillPapper/f501124ed7c431bd6404 to your computer and use it in GitHub Desktop.
Save WillPapper/f501124ed7c431bd6404 to your computer and use it in GitHub Desktop.
GitHub Pages Update Script
# Useful for when you want to simultaneously store a website in master and GitHub pages
# Copy this into /usr/bin/ with sudo
# Uncomment the cd line if you want to be able to invoke this script on a specific directory from anywhere
# cd /home/user/github-repo
git checkout gh-pages
git rebase master
git push origin gh-pages
git checkout master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment