git-update
Rebase onto latest upstream, checking for soft conflicts
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Rebase onto latest upstream, checking for soft conflicts
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Check whether this card's code meets the acceptance criteria
Write automated tests for unticked scenarios in this card's test cases
Draft edits to existing specs (or a new spec if no existing one fits) from the card description
Draft or refine the test-cases checklist for this card
Generate a context-rich briefing prompt for an external agent (Claude Code, Cursor, etc.)
Implement this card
| name | git-update |
| description | Rebase onto latest upstream, checking for soft conflicts |
| label | Update |
| workhorse-version | 0.1.0 |
Rebase this card's branch onto its upstream. The upstream is the parent branch this card was based on — usually main, but cards that depend on a parent card rebase onto the parent's branch instead. Determine the actual branch names from git rev-parse --abbrev-ref HEAD (the card branch) and git rev-parse --abbrev-ref @{upstream} (the base). Use those exact refs, not the workspace default.
git fetch origin to refresh remote refs, then verify the fetch updated the upstream by comparing git rev-parse origin/<base-branch> before and after — if the SHA didn't change but git ls-remote origin <base-branch> reports a different SHA, abort and report the discrepancy rather than rebasing onto stale stategit rebase origin/<base-branch> to rebase onto the upstreamgit push --force-with-lease origin <card-branch> so the remote reflects the rebased historyWhen local changes are small, the soft-conflict check can be brief. When local changes are large, examine thoroughly.