mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
8 lines
218 B
Bash
Executable file
8 lines
218 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
branches=$(git branch --no-color --merged | grep -vE "^(\*|\+)" | grep -v "$(git_extra_default_branch)" | grep -v svn)
|
|
if [ -n "$branches" ]
|
|
then
|
|
echo "$branches" | xargs -n 1 git branch -d
|
|
fi
|