What problem does it solve?
Rebasing a stale branch or resolving a merge conflict risks silently reverting fixes that landed on main, and choosing the wrong merge strategy can obscure history. This Skill codifies XTDB's branch-level git practices so those decisions are made safely and consistently.
Core Features & Use Cases
- Linear history guidance: Explains why rebasing a feature branch onto main is preferred over merging main into the branch.
- Safe conflict resolution: Provides a step-by-step procedure — inspect intervening commits with git log, read the related PRs and issues for intent, then choose a side and trace the fixed code path end-to-end.
- Three merge patterns: Covers GitHub squash-and-merge, committing a single reviewed change directly, and git merge --no-ff for preserving individual commits.
- Use Case: Before rebasing a long-lived feature branch with many conflicts, follow the Skill to check each conflicting file's history on main so a competing fix is not accidentally reverted.
Quick Start
Read this Skill before rebasing a branch, resolving a rebase conflict, or merging a branch back into main in the XTDB repository.