Git History Purge

Removes a committed secret, huge binary or private file from every ref, or shrinks a bloated repository. Rotates a credential first because a rewrite never un-leaks it, measures the real culprits with count-objects and a cat-file blob listing, rewrites a fresh mirror clone with git filter-repo (git lfs migrate when files must stay), never filter-branch. Then the skipped step: the host still serves old objects through refs/pull and cached views, so list them, request a host purge, have every collaborator re-clone, and verify with a second listing and a secret scanner. Use whenever someone says "someone committed a 400 MB file", "our clone takes ten minutes", "purge this key from history", "move our assets to LFS". Not for the leaked credential itself (secret-rotation), restoring rather than removing (git-history-recovery), or a broken rebase (branch-rebase-repair).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit ca18174157

Frequently asked questions

npx get-skill add greenblacked/git-history-purge