LogoClawIndex
CasesSkillsAbout
LogoClawIndex

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

Capabilities

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

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.
git
git-filter-repo
history-rewrite
security
repository-maintenance
Remove files from Git history
Remove directories from Git history
Remove submodules from Git history
Rename paths across Git history
Target Git repository
Paths to filter
Text pattern expressions file
Rewritten Git repository history
Reflog entries for recovery