summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bashrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/bashrc b/bashrc
index e50372d..500f586 100644
--- a/bashrc
+++ b/bashrc
@@ -69,6 +69,12 @@ gppdmb() {
PARENT=${1:-master}
git checkout $PARENT && git pull --prune && git delete-merged-branches
}
+createAllBranches() {
+ for branch in $(git branch --all | grep '^\s*remotes' | egrep --invert-match '(:?HEAD|master)$'); do git branch --track "${branch#*/*/}" "$branch"; done
+}
+filterAllBranches() {
+ git filter-branch --subdirectory-filter $1 --prune-empty --tag-name-filter cat -d /tmp/$$ -- $(git branch | cut -b 3-)
+}
alias gst='git status'
# Hg
hgd() {