Repository navigation
feat(skill): regulate rebase instead of forbidding it (#101) - #104
Merged
Merged
Conversation
Replace the blanket ban on rebasing pushed branches with a per-branch rule table: shared branches (main, develop, epic/*, release/*) are never rebased; own unpushed branches are free; own pushed single-owner branches may be rebased and pushed with --force-with-lease; approved PRs allow only fixup folding or a rebase onto the base; stacks move with --update-refs. Add recipes for rebase onto base, non-interactive autosquash and --onto, rewrite the forbidden list and the affected troubleshooting entries, add a "Merge or rebase?" decision guide, and add rebase/force-push to the trigger keywords. Closes #101
10 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Replaces the blanket ban on rebasing pushed branches with a per-branch rule table, so rebase can help with parallel work (slice onto updated epic, fixup folding, stacked PRs) without touching shared history.
main/develop/epic/*/release/*never; own unpushed branch free; own pushed single-owner branch allowed with--force-with-lease+ rerun tests/CI; approved PR only fixup folding or rebase onto base; someone else's branch or a stack base forbidden except the chain via--update-refs--forceis forbiddenGIT_SEQUENCE_EDITOR=:and the shell-independentgit -c sequence.editor=:),--ontoand--update-refsfor stacksrebase/force-pushadded to trigger keywords--no-ffmergesFollow-up (outside this repo): align the agent-horde
git-guardforce-push block after this lands.Closes #101
Checklist
./scripts/lint.shpasses