Skip to content

Instantly share code, notes, and snippets.

@Spaxe
Created March 17, 2015 02:29
Show Gist options
  • Save Spaxe/57842bfbc619c7c62dde to your computer and use it in GitHub Desktop.
Save Spaxe/57842bfbc619c7c62dde to your computer and use it in GitHub Desktop.
Deploy master to GitHub Pages and push both branches
git checkout gh-pages
git merge master
git push origin gh-pages master
git checkout -
# 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