1
0
mirror of https://github.com/pgrondek/config.git synced 2024-11-29 15:03:05 +00:00
config/git/bin/git-purge
Przemysław Grondek 7a5a85e711 [git] Fix git-purge
2019-11-28 11:15:35 +01:00

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