Rules Hub
Coding Rules Library
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
fullstack ruleP2universalStack: universal
gitworkflowcode-reviewcollaboration
Avoid force-pushing a PR branch once review has started; merge the base instead
After a review is requested, prefer merging the base branch into your PR branch over rebase+force-push, which rewrites shared history and breaks others' tracking of your changes.
PR: hegnar-web · org-mining-deep-2026-06Created: Jun 17, 2026
Bad example
Old codebash
| 1 | git rebase master |
| 2 | git push --force # on a branch already under review |
Explanation (EN)
Objašnjenje (HR)
Good example
New codebash
| 1 | git merge master # to sync an in-review branch |
| 2 | git push |
Explanation (EN)
Objašnjenje (HR)