Pencils, Not Stencils: A Better Way to Prune Git Branches: fzf and a Tiny Loop
spin.atomicobject.com·1d·
Discuss: Hacker News
Flag this post

Pictured is a developer looking at a screen full of code. Post title: Pencils, Not Stencils: A Better Way to Prune Git Branches: fzf and a Tiny Loop

At Atomic, we build all kinds of software, from deep systems integrations to greenfield apps. But sometimes, it’s the tiniest tools that deliver surprisingly big wins.

Here’s a shell script I wrote to solve a problem that every dev hits eventually: cleaning up old Git branches. Yeah, you can prune Git branches manually, or with one-liners, or via your IDE. However, I had a bunch of branches to delete, and there were just enough of them that manual deletion felt annoying. And they had just enough variation that full lights-out automation was probably goi…

Similar Posts

Loading similar posts...