Git One-Liner for Deleting Merged Branches, Found in CIA's Vault7 Leak
By
spencerldixon
A second-rack bagel that's nearly first-rack. Tasty stuff.
Summary
The article describes a useful git one-liner command for cleaning up merged branches that was discovered in the CIA's leaked Vault7 documents from 2017. While most of the CIA's developer documentation contained standard git tips, this particular command for deleting all locally merged branches has remained valuable to the author, who has kept it in their shell configuration file for years.
Key quotes
· 4 pulledIn 2017, WikiLeaks published Vault7 - a large cache of CIA hacking tools and internal documents. Buried among the exploits and surveillance tools was something far more mundane: a page of internal developer documentation with git tips and tricks.
But one tip has lived in my ~/.zshrc ever since.
Over time, a local git repo accumulates stale branches. Every feature branch, hotfix, and experiment you've ever merged sits there doing nothing. git branch starts to look like a graveyard.
How to delete all merged git branches locally with a single command. This one-liner has been in my zshrc since 2017 — I found it buried in the CIA's Vault7 leak...
You might also wanna read
Why Average LLM Use Is Likely Destroying Value in Software Development
The author argues that, contrary to prevailing hype, the average use of Large Language Models (LLMs) is likely destroying value rather than
How AI Accelerated Prototyping: From Idea to Tangible in Record Time
The author reflects on how AI has transformed their prototyping workflow. Previously, the biggest bottleneck was the time needed to scaffold
GitLab 19.0 launches with Secrets Manager, agentic workflows, and self-hosted AI models
GitLab 19.0 has been released, positioning itself as an intelligent orchestration platform for DevSecOps. The release includes expanded secr
bit.ly·1d agoCentralizing Error Handling in Rust with Custom AppError Enums
This article discusses the importance of centralizing error handling in Rust applications using a custom AppError enum combined with map_err
Zig Devlog: Build System Rework Separates Maker and Configurer Processes
This devlog entry from the Zig programming language project announces a major rework of the build system, separating the maker process from
Study finds most developers refuse to code without AI, raising quality concerns
A February 2026 study by AI research lab METR reveals that most developers now refuse to work without AI coding tools. While these tools hel
