name: push description: Push current branch changes to origin; use when asked to push or publish updates.
Push
Steps
- Identify current branch and confirm remote state.
- Run local validation (
cargo check,cargo test) before pushing. - Push branch to
originwith upstream tracking if needed. - If push is rejected:
- If non-fast-forward, run the
pullskill first. - Push again; use
--force-with-leaseonly when history was rewritten.
- If non-fast-forward, run the
Notes
- Do not use
--force; only use--force-with-leaseas last resort.