Skip to content

Instantly share code, notes, and snippets.

@jashkenas
Created May 25, 2011 20:18
Show Gist options
  • Select an option

  • Save jashkenas/991835 to your computer and use it in GitHub Desktop.

Select an option

Save jashkenas/991835 to your computer and use it in GitHub Desktop.
~ > cat /usr/local/bin/git-publish
#!/usr/bin/env ruby
cmds = []
cmds << "git co gh-pages"
cmds << "git merge master"
cmds << "git push github gh-pages"
cmds << "git co master"
system cmds.join("&&")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment