Skip to content

feat(skill): regulate rebase instead of forbidding it (#101) - #104

Merged
q-soriarty merged 2 commits into
developfrom
feature/101-regulate-rebase
Nov 19, 2026
Merged

q-soriarty merged 2 commits into
developfrom
feature/101-regulate-rebase

Conversation

@q-soriarty

Copy link
Copy Markdown
Contributor

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.

  • Rebase Rules table: 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
  • Amend on pushed commits follows the same table; plain --force is forbidden
  • Recipes: rebase onto base, non-interactive autosquash (GIT_SEQUENCE_EDITOR=: and the shell-independent git -c sequence.editor=:), --onto and --update-refs for stacks
  • Forbidden list, troubleshooting entries and a new "Merge or rebase?" decision guide updated; rebase/force-push added to trigger keywords
  • Unchanged: no squash or rebase merge into protected branches, --no-ff merges
  • CHANGELOG Unreleased entry

Follow-up (outside this repo): align the agent-horde git-guard force-push block after this lands.

Closes #101

Checklist

  • All workflow invariants are preserved (atomic commits, conventional commits, no AI signatures, gitflow, issue-driven, PR-only merges, semver)
  • Decision guides cover the new/changed rules
  • Tested by invoking the skill in a Claude Code session
  • All content is in English
  • ./scripts/lint.sh passes

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
@q-soriarty
q-soriarty merged commit 5b6b2fa into develop Nov 19, 2026
1 check passed
@q-soriarty
q-soriarty deleted the feature/101-regulate-rebase branch November 19, 2026 08:59
@q-soriarty q-soriarty mentioned this pull request Nov 19, 2026
10 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant