Skip to main content
在 Manus 中运行任何 Skill
一键导入
$pwd:

git-history-cleanup

// Collapse many WIP / fix-to-fix commits on a feature branch into a small set of topic-focused commits. Reads the original commit messages first so intent is preserved, soft-resets to origin/main so intermediate / overwritten changes drop out automatically, then re-commits the accumulated diff one logical topic at a time. Use before opening a PR or merging when `git log origin/main..HEAD` looks noisy.

$ git log --oneline --stat
stars:874
forks:84
updated:2026年5月23日 16:01
SKILL.md
readonly