Skip to content

feat(push): allow --force to override behind-remote skip#439

Merged
henrikje merged 1 commit intomainfrom
allow-force-pushing-over-new
Mar 26, 2026
Merged

feat(push): allow --force to override behind-remote skip#439
henrikje merged 1 commit intomainfrom
allow-force-pushing-over-new

Conversation

@henrikje
Copy link
Copy Markdown
Owner

When a repo is strictly behind the remote (toPush=0, toPull>0),
arb push now respects --force instead of unconditionally skipping.
The push uses --force-with-lease to overwrite remote-only commits,
matching user expectations and the command's documented behavior.

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

When a repo is strictly behind the remote (toPush=0, toPull>0),
arb push now respects --force instead of unconditionally skipping.
The push uses --force-with-lease to overwrite remote-only commits,
matching user expectations and the command's documented behavior.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@henrikje henrikje enabled auto-merge (rebase) March 26, 2026 15:43
@henrikje henrikje merged commit db78866 into main Mar 26, 2026
10 checks passed
@henrikje henrikje deleted the allow-force-pushing-over-new branch March 26, 2026 15:46
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