I have build up a bunch of local branches. I want to safely get rid of them. By safely, I mean I would like to only delete the local branches for the remotes have been merged and deleted.
I used gitlab to delete merged branches, however that leaves the local branches. I tried pruning, but it didn't seem to do what I expected.
I ran git branch -vv
Branch_XYZ 82142af1 [origin/Branch_XYZ: gone] Some commit message
Branch_XYZ2 82142af1 [origin/Branch_XYZ2: gone] Some commit message
...
I think all these ones are safe to delete, but I would like git to do it for all of them. I have like 30 or something. (Spring Cleaning Time)
GC