Remove branches when their remote was removed

This commit is contained in:
Knut Ahlers 2016-10-24 08:16:23 +02:00
parent b34e56726e
commit 636c820a0d
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -23,3 +23,6 @@ for branch in $(git branch --merged | grep -v '^*'); do
git branch -d ${branch}
fi
done
step "Removing local branches where remote branch is gone..."
git branch -vv | awk '/: gone]/{print $1}' | xargs -r git branch -D