create git commands

This commit is contained in:
rkiel
2015-06-06 07:59:12 -04:00
parent d7634a8653
commit be68a8b6c8
6 changed files with 59 additions and 19 deletions

View File

@@ -22,15 +22,15 @@ module Feature
error "invalid feature branch: #{feature_branch}" if standard_branches.include? feature_branch
run_cmd "git checkout #{standard_branch}"
git_checkout standard_branch
if remote_branch(feature_branch) != ""
run_cmd "git push origin :#{feature_branch}"
git_remote_branch_delete feature_branch
end
run_cmd "git branch -D #{feature_branch}"
git_local_branch_delete feature_branch
run_cmd "git remote prune origin"
git_prune
end
end