Skip to content

Instantly share code, notes, and snippets.

@jnewland
Forked from defunkt/deploy.rb
Created February 22, 2009 23:43
Show Gist options
  • Save jnewland/68694 to your computer and use it in GitHub Desktop.
Save jnewland/68694 to your computer and use it in GitHub Desktop.
# deploy to staging from your current topic branch, with ease
set :branch, "origin/#{`git branch`.scan(/^\* (\S+)/)}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment