1
0
Fork 0
mirror of https://github.com/pgrondek/config.git synced 2025-02-16 14:56:28 +00:00
config/git/bin/git-purge
Przemysław Grondek 7a5a85e711 [git] Fix git-purge
2019-11-28 11:15:35 +01:00

9 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