9-fetch: start using fetch

This commit is contained in:
rkiel
2017-10-07 09:56:56 -04:00
parent 657c88c14e
commit 941aed3389
8 changed files with 25 additions and 9 deletions

View File

@@ -48,6 +48,19 @@ module Shared
run_cmd "git checkout #{branch}"
end
def git_fetch
run_cmd "git fetch origin && git fetch origin --tags"
end
def git_remote_merge ( branch )
run_cmd "git merge origin/#{branch}"
end
def git_fetch_and_merge (branch)
git_fetch
git_remote_merge branch
end
def git_remote_branch_delete ( branch )
run_cmd "git push origin :#{branch}"
end