some additional git helpers
This commit is contained in:
@@ -53,4 +53,10 @@ get_pr() {
|
||||
: ${REMOTE:="upstream"}
|
||||
git fetch ${REMOTE} pull/${1}/head:pr/${1}
|
||||
git checkout pr/${1}
|
||||
}
|
||||
}
|
||||
|
||||
del_pr() {
|
||||
BRANCH=`git rev-parse --abbrev-ref HEAD`
|
||||
git checkout - && git branch -D ${BRANCH}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user