Skip to content

Instantly share code, notes, and snippets.

@defunkt
Created February 21, 2009 01:07
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save defunkt/67817 to your computer and use it in GitHub Desktop.
Save defunkt/67817 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