Skip to content

Instantly share code, notes, and snippets.

@mkantor
Created May 2, 2013 05:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkantor/5500264 to your computer and use it in GitHub Desktop.
Save mkantor/5500264 to your computer and use it in GitHub Desktop.
Make sure that the `master` and `gh-pages` branches are identical on `origin`.
#!/bin/sh
echo 'Pushing master to origin/master...'
git push origin master
echo 'Pushing origin/master to origin/gh-pages...'
git push origin origin/master:gh-pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment