Split a commit into multiple

Split a commit into multiple in Git — with the four heights of help laid out: do it now, make it easier for the next person to accept, work out the right move when you are stuck, and learn the pattern so it stops coming back.

4prompt heights
Open it in the interactive atlas →

The four heights

The same task, four distances: today's deadline, the next reviewer, the stuck moment, the pattern.

Execute — do the immediate task

+
I accidentally bundled unrelated changes into a single commit that touches the billing code and the…
I accidentally bundled unrelated changes into a single commit that touches the billing code and the README. Split that commit into two: leave the billing changes in one commit with a clear message and move the README edits into a separate commit, keeping the original author and timestamp, and stop so I can review the new commit messages before finishing.

Improve — make it easier to accept

+
Before I split this mixed commit, make the review easy: list exactly which changed files and hunks…
Before I split this mixed commit, make the review easy: list exactly which changed files and hunks will go into each new commit, suggest succinct commit messages that explain why each change belongs together, and flag any dependent lines (like imports or formatting) that could cause tests to break when separated.

Decide — diagnose the stuck moment

+
I just committed a bugfix and some documentation tweaks together and pushed to the feature branch.…

I combined unrelated bugfix and doc tweaks into one commit.

I just committed a bugfix and some documentation tweaks together and pushed to the feature branch. I'm afraid splitting the commit will confuse the reviewer and could change the bugfix context. I don't know if CI will rerun differently after I rewrite. What's the safest step to split and push without upsetting the PR history or losing reviewers' context?

Become — change the pattern

+
We keep seeing commits that mix code changes and nonfunctional tweaks, then spend time splitting…

Developers routinely commit mixed changes together.

We keep seeing commits that mix code changes and nonfunctional tweaks, then spend time splitting them later. It's slowing reviews and causing revert mistakes. Which practical habit should we adopt in day-to-day work to reduce mixed commits, and how do I enforce it without adding tedious rules?

Next to this one

Other version control work people do in Git.

Every task here came from the work, not from a feature list — which is why the prompts name what you want done and never the button that does it. The tool changes; the work does not.
Copyright © LLOS.ai · 2026 — original pedagogy, voice, and design — all rights reserved.

The rest of the map

Same library, five ways in.