Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pull() {
- cmd="git fetch upstream "
- for var in "$@"
- do
- cmd="$cmd pull/$var/head:pullRequest$var"
- done
- echo $cmd
- $cmd
- for var in "$@"
- do
- git checkout pullRequest$var
- git rebase master
- if [[ $? -ne 0 ]]; then
- exit 1
- fi
- git checkout master
- git merge pullRequest$var
- git branch -D pullRequest$var
- done
- }
Add Comment
Please, Sign In to add comment