cleanup the merged branches
git branch -r --merged |
grep origin |
grep -v '>' |
grep -v master |
xargs -L1 |
cut -d"/" -f2- |
xargs git push origin --delete
prune the branches which have been removed in origin:
git fetch --prune origin
cleanup the merged branches
git branch -r --merged |
grep origin |
grep -v '>' |
grep -v master |
xargs -L1 |
cut -d"/" -f2- |
xargs git push origin --delete
prune the branches which have been removed in origin:
git fetch --prune origin