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-only

Attempt the push and capture how it fails

git push

Matched against this step's known patterns to pick the next step.

View full flow
  • resolvedPending
    kind: outcome
  • set_upstreamPending
    kind: recipe_ref
    • outcome: success → resolved
    • default → unknown_failure
  • unknown_failurePending
    kind: outcome
  • check_push_error (entry)In progress
    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_historyPending
    kind: diagnostic
    • match "diverged" → offer_rebase_or_force
    • default → unknown_failure
  • permission_errorPending
    kind: outcome
  • offer_rebase_or_forcePending
    kind: outcome