Skip to content

Instantly share code, notes, and snippets.

@ajsharp
Created August 23, 2011 17:58
Show Gist options
  • Select an option

  • Save ajsharp/1166000 to your computer and use it in GitHub Desktop.

Select an option

Save ajsharp/1166000 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# Usage: land-feature
current_branch = `git branch | grep '\*' | awk '{print $2}'`.chomp
unless current_branch.include?("feature")
puts "You are not current on a feature branch."
exit(1)
end
current_feature_branch = current_branch.split("/").pop
system("git flow feature finish #{current_feature_branch} && git push origin master && bundle exec cap staging deploy")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment