When rebasing a feature branch that adds both Alembic migrations and auto-generated SDK files (OpenAPI client, lockfiles) onto a master that has also advanced:
git checkout --theirs) for generated files like openapi.json and SDK .ts files. Don't try to merge them — the content is throwaway.ff build openapi-sdk). This picks up types/routes from both master and the feature branch.down_revision values. The newer migration's down_revision must chain after the other.--reapply-cherry-picks flag forces them, but usually skipping is correct.git commit --amend will fail on the first try (prettier modifies files). Immediately retry — the formatted files are already staged.Key insight: resolve generated-file conflicts quickly during rebase (don't try to merge them), then regenerate everything in one pass. The generation tool is the source of truth, not the conflict resolution.