AGENTS.md was written a few hours before the fix that made its own advice wrong. The rebase step existed to keep main's history out of develop while the two had drifted ten commits apart; #22 closed that gap and fast-forward-only promotions keep it closed, so a merge now drags nothing in.
Rebasing today would only rewrite a contributor's SHAs and drop contrib out of main's ancestry, which is precisely what turns the routine reset into a force-push against a protected branch.
Proven rather than argued: #28 carried the first external contribution through by merge, and the author's commits sit in develop under their original hashes with main still an ancestor.
Hotfixes stay the exception, since they reach main without passing through develop, so the rebase guidance is kept for that case rather than deleted.
AGENTS.md was written a few hours before the fix that made its own advice wrong. The rebase step existed to keep `main`'s history out of `develop` while the two had drifted ten commits apart; #22 closed that gap and fast-forward-only promotions keep it closed, so a merge now drags nothing in.
Rebasing today would only rewrite a contributor's SHAs and drop `contrib` out of `main`'s ancestry, which is precisely what turns the routine reset into a force-push against a protected branch.
Proven rather than argued: #28 carried the first external contribution through by merge, and the author's commits sit in `develop` under their original hashes with `main` still an ancestor.
Hotfixes stay the exception, since they reach `main` without passing through `develop`, so the rebase guidance is kept for that case rather than deleted.
The rebase existed to keep `main`'s history out of `develop` back when the two
had drifted ten commits apart. Fast-forward-only promotions closed that gap
hours after this file was written, and with `develop` and `main` on the same
commit a merge drags nothing in — so rebasing now only rewrites a
contributor's SHAs and drops `contrib` out of `main`'s ancestry, which is what
forces the force-push at reset time.
Proven on the first contribution through the route: the author's commits are
in `develop` under their original hashes, `main` is still an ancestor, and the
reset ahead is a plain fast-forward.
Hotfixes remain the exception, since they reach `main` without passing through
`develop`, so the rebase guidance stays for that case.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
chrnx
merged commit 9bff2a52c9 into develop2026-08-10 13:51:11 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
AGENTS.md was written a few hours before the fix that made its own advice wrong. The rebase step existed to keep
main's history out ofdevelopwhile the two had drifted ten commits apart; #22 closed that gap and fast-forward-only promotions keep it closed, so a merge now drags nothing in.Rebasing today would only rewrite a contributor's SHAs and drop
contribout ofmain's ancestry, which is precisely what turns the routine reset into a force-push against a protected branch.Proven rather than argued: #28 carried the first external contribution through by merge, and the author's commits sit in
developunder their original hashes withmainstill an ancestor.Hotfixes stay the exception, since they reach
mainwithout passing throughdevelop, so the rebase guidance is kept for that case rather than deleted.