Skip to content

stck push fails after rebase — needs force push support #45

@Reinand

Description

@Reinand

Problem

After rebasing the stack (manually, since stck sync didn't detect the divergence — see #44), stck push refuses to push with:

error: remote branch `origin/<branch>` has commits not in local `<branch>`; pull or rebase to integrate remote changes before pushing

This is expected behavior after a rebase — the history has been rewritten. But force pushing is the whole point of pushing after a sync/rebase.

Suggestion

  • Add --force or --force-with-lease flag to stck push
  • Or use --force-with-lease by default, since stck push is always called after stck sync which rewrites history

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions