Created
May 1, 2014 13:54
-
-
Save WillPapper/f501124ed7c431bd6404 to your computer and use it in GitHub Desktop.
GitHub Pages Update Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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