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