git-rewrite-history - Safely rewrite Git history using git-filter-repo
Rewrites Git repository history using git-filter-repo to remove files, secrets, submodules, or large blobs.
Tags
Updated: 2026-09-15Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Remove files from Git history
- Remove directories from Git history
- Remove submodules from Git history
- Rename paths across Git history
- Strip large blobs from history
- Replace text patterns in history
Inputs
- Target Git repository
- Paths to filter
- Text pattern expressions file
Outputs
- Rewritten Git repository history
- Reflog entries for recovery
Requirements
- Git
- Python and pip
- git-filter-repo package
- Explicit user approval for force push
