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