some additional git helpers

This commit is contained in:
2014-11-05 11:15:02 -07:00
parent 9143c5cc71
commit a10dd6785a
2 changed files with 10 additions and 2 deletions

View File

@@ -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}
}