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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help