# Cleaning up merged git branches: a one-liner from the CIA's leaked dev docs

**URL:** <https://forum.devtalk.com/t/cleaning-up-merged-git-branches-a-one-liner-from-the-cias-leaked-dev-docs/235628>\
**Category:** In The News\
**Tags:** via-news-bot, git, in-the-news\
**Created:** [27 February 2026 04:00 UTC](https://forum.devtalk.com/t/cleaning-up-merged-git-branches-a-one-liner-from-the-cias-leaked-dev-docs/235628 "2026-02-27T04:00:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CommunityNews](https://forum.devtalk.com/user_avatar/forum.devtalk.com/communitynews/32/1113_2.png) [@CommunityNews](https://forum.devtalk.com/u/CommunityNews)\
**Post date:** [27 February 2026 04:00 UTC](https://forum.devtalk.com/t/cleaning-up-merged-git-branches-a-one-liner-from-the-cias-leaked-dev-docs/235628/1 "2026-02-27T04:00:24Z")

</div>

> 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 l…

Read in full here:

> **[Cleaning up merged git branches: a one-liner from the CIA's leaked dev docs |...](https://spencer.wtf/2026/02/20/cleaning-up-merged-git-branches-a-one-liner-from-the-cias-leaked-dev-docs.html)**
>
> 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 l...
