Amend the last commit

Amend the last commit 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 just finished writing and forgot to add a file and tweak the commit message. Amend the last…
I just finished writing and forgot to add a file and tweak the commit message. Amend the last commit so the repository history shows the new file and the corrected message, then verify the commit hash changed and push the update to origin on branch feature/auth with forced update only if remote matches my local HEAD first.

Improve — make it easier to accept

+
Before I amend the last commit that others might fetch, make it safe to review: show the exact file…
Before I amend the last commit that others might fetch, make it safe to review: show the exact file list I’m about to include, surface the line in the message I’m changing, warn if anyone else has pushed to origin/feature/auth since my last pull, and provide a clean one-line message that preserves ticket ABC-123 and clarifies the bugfix.

Decide — diagnose the stuck moment

+
I committed on branch feature/auth and need to add config/credentials.yml and tweak the message to…

I just made a quick commit and realized I left out a config file.

I committed on branch feature/auth and need to add config/credentials.yml and tweak the message to reference ABC-123. I’m worried teammates may have fetched or based work on the old commit. What’s the safest sequence to amend locally, check for remote divergence, and update origin without blowing up others’ work?

Become — change the pattern

+
Over the last month I keep amending the last commit to fix tiny issues and force-pushing to feature…

I repeatedly amend the last commit and then force-push, causing confusion.

Over the last month I keep amending the last commit to fix tiny issues and force-pushing to feature branches. It confuses reviewers and occasionally breaks colleagues’ rebases. Which habit should I change to keep history cleaner and avoid disrupting others, and what concrete rules should I adopt when altering pushed commits?

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.