summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/bashrc b/bashrc
index 65890e4..87a2343 100644
--- a/bashrc
+++ b/bashrc
@@ -273,6 +273,9 @@ gppdmb() {
PARENT=${1:-master}
git checkout $PARENT && git pull --prune && git delete-merged-branches
}
+findbranches() {
+ find ~/work/ -name .git -type d | while read r ; do echo $r ; git -C $(dirname $r) branch -a | grep "\<.$1[^0-9]" ; done
+}
createAllBranches() {
for branch in $(git branch --all | grep '^\s*remotes' | egrep --invert-match '(:?HEAD|master)$'); do git branch --track "${branch#*/*/}" "$branch"; done
}