2020-11-14 02:05:51 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# Cleans up remote branches and removes branches where the remote-tracking branches got removed.
|
2021-11-10 17:23:46 +01:00
|
|
|
git fetch --all --prune &&
|
2020-11-14 02:05:51 +01:00
|
|
|
for branch in `git branch -vv | grep ": gone]" | cut -d" " -f3`
|
|
|
|
do git branch -D "$branch"
|
|
|
|
done
|