diff options
-rw-r--r-- | bashrc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 } |