Install
openclaw skills install @kingaiwork/git-history-rewriterSquash, split, or reorder commits, rewrite author info, and clean large files from Git history. / 合并、拆分或重排提交,重写作者信息,清理大文件。
openclaw skills install @kingaiwork/git-history-rewriterSquash, split, or reorder commits, rewrite author info, and clean large files from Git history. / 合并、拆分或重排提交,重写作者信息,清理大文件。
🦁 由 KingAI.Work 出品 — 智能进化|vip@kingai.work
• Squash multiple commits into one clean commit / 将多个琐碎提交一键合并为一个整洁的提交,让项目日志从杂乱变精炼 • Rewrite author name and email for any commit, past or present / 批量修正任意历史提交的作者信息,彻底告别“无名氏”贡献记录 • Split a single commit into separate logical changes / 把一个复杂提交拆解成多个逻辑独立的改动,让代码审查一目了然 • Reorder commit sequence with drag-and-drop simplicity / 拖拽式调整提交顺序,就像整理播放列表一样轻松 • Strip large or sensitive files from entire Git history (Pro) / 从整个Git历史中永久移除大文件或敏感数据,Pro版支持深度扫描和过滤 • Preview rewrite impact with dry-run mode before applying changes (Pro) / 应用更改前通过试运行预览重写影响,Pro版提供冲突预检测,避免误操作
git history-rewriter --squash HEAD~5..HEAD -m "Combined feature work" Squashes the last 5 commits into one with a new message. / 将最近5个提交合并为一个,并赋予统一描述,让主干提交历史更清爽。
• Accidentally committed an API key to a public repo / 不小心将API密钥提交到了公开仓库,普通删除无法抹去痕迹,使用该工具从历史中彻底清除该文件的每次出现。 • Team needs uniform author names after merging from multiple repos / 团队合并了多个仓库后,作者姓名混乱,该工具可一次性地将所有“OldName”替换为“NewName”,贡献者图谱恢复清晰。 • Preparing a messy feature branch for upstream review / 准备向上游提交混乱的功能分支前,用该工具将20个开发草稿提交压缩为3个逻辑清晰的提交,并调整顺序让演进脉络更合理。
| Feature | Free | Pro |
|---|---|---|
| Core / 核心功能 | ✅ | ✅ |
| Batch / 批量处理 | — | ✅ |
| AI / AI 增强 | — | ✅ |
| Support / 支持 | Community | Priority |
Published by King AI — kingai.work | vip@kingai.work