Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/bin/sh
  2. test -z "$2" && { echo "syntax: $0 <PR-number> <temporary-name>"; exit 1; }
  3. set -ex
  4. git checkout master
  5. git branch -D pr-$1-$2
  6. git fetch origin pull/$1/head:pr-$1-$2
  7. git checkout pr-$1-$2
  8. set +x
  9. echo "### Pull request #$1 should be here in current branch 'pr-$1-$2':"
  10. git branch | grep pr-$1-$2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement