Reading Real Feedback on Your Own PR
The Simplest Real Response: Just Push Another Commit
# edit the file to address the real feedback
git add creme-brulee.md
git commit -m "Add serving size to creme brulee recipe"
No special ceremony — a PR updates the instant a new commit lands on its branch.
A Real Typo, Caught Immediately
git commit -m "Note leftover storage for creme brulee"
# ...typo spotted: "2 dyas"
Cleaning It Up Before Merge
git commit --fixup=<hash of the typo'd commit>
git rebase -i --autosquash <the branch's own merge commit>
--autosquash automatically reorders the fixup right after its real target and folds it in — one clean, real commit, exactly as if the typo had never happened. Scoping the rebase to start right after the branch's own merge commit means that real merge is never touched or replayed.
The simplest, most common real way to update a PR is exactly what it sounds like: push another commit. GitHub (and this real branch) picks it up automatically — no special command needed, no re-opening anything.
But real work is rarely perfect the first time. A genuine typo, caught immediately, is the exact real scenario git commit --fixup exists for: mark a new commit as "this really belongs squashed into that earlier one," then git rebase -i --autosquash folds it in automatically — producing exactly the clean, real history a PR deserves before it merges, without ever needing to replay the branch's own real merge commit.
git commit --fixup=<commit>
Creates a real new commit explicitly marked as belonging squashed into an earlier, specific commit — confirmed directly in this lab by its real, distinctive "fixup!" message prefix.
git rebase -i --autosquash
Automatically reorders any real fixup! commits directly after their real target and folds each one in during the rebase — confirmed directly in this lab: no manual reordering needed, the messy history from that automatically becomes one clean, real commit.
Takeaways
- The simplest, most common way to update a PR is just pushing another real commit
- git commit --fixup=<commit> creates a real commit explicitly marked as belonging squashed into an earlier one
- git rebase -i --autosquash automatically folds every real fixup! commit into its target, no manual reordering needed
- Scoping an autosquash rebase to start right after a branch's own merge commit keeps that real merge completely untouched