top | item 47088828 (no title) trashymctrash | 10 days ago If you squash your PR before merging, then this alternative worked really well for me: git fetch --prune && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D discuss order hn newest lkbm|10 days ago Almost identical to mine, but you've got smarter awk use: `git prune origin && git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}' | xargs git branch -D`I think I probably copied this from Stack Overflow close to a decade ago. Seems like a lot of people have very similar variations.
lkbm|10 days ago Almost identical to mine, but you've got smarter awk use: `git prune origin && git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}' | xargs git branch -D`I think I probably copied this from Stack Overflow close to a decade ago. Seems like a lot of people have very similar variations.
lkbm|10 days ago
I think I probably copied this from Stack Overflow close to a decade ago. Seems like a lot of people have very similar variations.