I can't push my branch
Diagnoses why `git push` is failing and routes to the right fix, covering missing upstream, non-fast-forward rejection, and permission errors.
Run this
Read-onlyAttempt the push and capture how it fails
git pushMatched against this step's known patterns to pick the next step.
View full flow
- resolvedkind: outcome
- set_upstreamkind: recipe_ref
- outcome: success → resolved
- default → unknown_failure
- unknown_failurekind: outcome
- check_push_error (entry)kind: diagnostic
- match "has no upstream branch" → set_upstream
- match "\[rejected\].*non-fast-forward" → diverged_history
- match "Permission denied|403" → permission_error
- default → unknown_failure
- diverged_historykind: diagnostic
- match "diverged" → offer_rebase_or_force
- default → unknown_failure
- permission_errorkind: outcome
- offer_rebase_or_forcekind: outcome