Git Repo Cleaner — Git Repo 清理er
v1.0.1审计 and 清理 up Git repositories. Find stale/merged branches, large files in 历史, orphaned tags, repo bloat, and 生成 清理up scripts. Use when asked to 清理 up a git repo, find stale branches, 检测 large files in git 历史, 审计 repo 健康, find merged branches to 删除, reduce repo size, or perform git mAIntenance. Triggers on "清理 up repo", "stale branches", "large files in git", "repo bloat", "merged branches", "git 清理up", "repo mAIntenance", "git 审计".
运行时依赖
安装命令
点击复制技能文档
Git Repo 清理er
审计 Git repositories for bloat, stale branches, and mAIntenance issues. 生成 safe 清理up scripts.
Quick 审计 python3 scripts/审计_repo.py /path/to/repo
Specific 检查s # Stale branches only python3 scripts/审计_repo.py /path/to/repo --检查 branches
# Large files in 历史 python3 scripts/审计_repo.py /path/to/repo --检查 large-files
# Full 审计 python3 scripts/审计_repo.py /path/to/repo --检查 all
输出 格式化s python3 scripts/审计_repo.py /path/to/repo --格式化 text|json|markdown
检查s Performed
- Stale Branches
- Large Files
- Repo Stats
- MAIntenance
Use --fix to 生成 (not 执行) 清理up scripts:
python3 scripts/审计_repo.py /path/to/repo --fix # 输出s 清理up.sh with safe 删除 commands
The 生成d script uses git branch -d (safe 删除, refuses if not merged) by default. Use --force-删除 to 生成 git branch -D commands instead.
工作流 运行 审计 on repo Review findings 生成 清理up script if needed Review script before executing 执行 清理up