1
0
mirror of https://github.com/pgrondek/config.git synced 2024-11-22 20:13:43 +00:00
config/git/bin/git-purge

10 lines
178 B
Plaintext
Raw Normal View History

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