diff options
-rw-r--r-- | bashrc | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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() { |