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

@@ -27,11 +27,11 @@ module Feature
error "invalid branch: #{merge_to_branch}" unless standard_branches.include? merge_to_branch
run_cmd "git checkout #{merge_to_branch}"
run_cmd "git pull origin #{merge_to_branch}"
run_cmd "git merge #{feature_branch}"
run_cmd "git push origin #{merge_to_branch}"
run_cmd "git checkout #{feature_branch}"
git_checkout merge_to_branch
git_pull merge_to_branch
git_merge feature_branch
git_push merge_to_branch
git_checkout feature_branch
end
end