Rewrite the current branch's history into clean, narrative-quality commits suitable for code review. Goal Transform messy development history into a logical story reviewers can follow commit-by-commit. Original branch is rewritten; backup preserved for rollback. Arguments = optional flags ( skips interactive approval) Preconditions Abort with clear error if: - On main/master branch - Uncommitted changes exist - No commits to rewrite (branch matches main) Execution 1. Create backup branch : — permanent until manually deleted 2. Analyze the diff between current branch and main—understand the co…