Consolidate Commits

Consolidate a feature branch's commits into the minimum number of valuable commits with no add-then-undo churn, verifying the final tree is byte-identical. Use whenever the user asks to clean up, consolidate, squash, restructure, or curate a branch's commits, wants "reviewable commits" before landing or opening a PR, or complains that a branch's history is messy or has churn — even if they don't say "squash".

gitkraken Updated 10k repo stars
Watch the GitLens Getting Started video

File contents

gitkraken/vscode-gitlens commit b633e42eba

Frequently asked questions

npx get-skill add gitkraken/consolidate-commits