mirror of
https://github.com/pgrondek/config.git
synced 2024-11-22 12:03:43 +00:00
10 lines
178 B
Bash
Executable File
10 lines
178 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
BRANCHES=$(git branch --merged|egrep -v "(^\*|master|dev)")
|
|
|
|
if [ -z "${BRANCHES}" ] ; then
|
|
echo "Nothing to delete"
|
|
else
|
|
git branch -d ${BRANCHES}
|
|
fi
|