add git branch cleanup helper and alias
This commit is contained in:
@@ -60,3 +60,9 @@ del_pr() {
|
||||
git checkout - && git branch -D ${BRANCH}
|
||||
}
|
||||
|
||||
clean_branches() {
|
||||
BRANCHES=`git branch | grep -v \*`
|
||||
for i in ${BRANCHES}; do
|
||||
git branch -d $i
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user