1
0
Fork 0
mirror of https://github.com/pgrondek/config.git synced 2025-03-16 11:45:37 +00:00
config/git/bin/git-purge

10 lines
178 B
Text
Raw Normal View History

2019-11-28 11:10:46 +01:00
#!/usr/bin/env sh
2019-11-28 11:15:35 +01:00
BRANCHES=$(git branch --merged|egrep -v "(^\*|master|dev)")
if [ -z "${BRANCHES}" ] ; then
echo "Nothing to delete"
else
git branch -d ${BRANCHES}
fi