Created
March 17, 2015 02:29
-
-
Save Spaxe/57842bfbc619c7c62dde to your computer and use it in GitHub Desktop.
Deploy master to GitHub Pages and push both branches
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
git checkout gh-pages | |
git merge master | |
git push origin gh-pages master | |
git checkout - |
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
# Step 0: save git-deploy-master somewhere in your $PATH and make sure it has execute permission. | |
# in master, commit your code | |
git commit -m "Updated website" | |
# Deploy to gh-pages | |
git deploy-master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment