Rd

Merge Rob's development branch into the staging branch.

gotekna updated 1mo ago
Claude CodeGeneric
View source ↗
# Merge Rob-Dev to Staging

Merge Rob's development branch into the staging branch.

## Instructions

1. First, ensure we're on the staging branch and it's up to date:
   ```bash
   git checkout staging
   git pull origin staging
  1. Fetch the latest Rob-Dev branch:

    git fetch origin Rob-Dev
    
  2. Check what will be merged (preview):

    git log --oneline staging..origin/Rob-Dev
    
  3. Attempt the merge:

    git merge origin/Rob-Dev --no-edit
    
  4. If merge conflicts occur, handle ONE AT A TIME:

    For EACH conflicted file (one by one):

    a) Show the file path and conflict location (line numbers)

    b) Explain what staging branch has:

    • Show the actual code from staging (ours)
    • Explain what this code does in plain English
    • When was it last modified and by whom

    c) Explain what Rob-Dev has:

    • Show the actual code from Rob-Dev (theirs)
    • Explain what this code does in plain English
    • What feature/fix was Rob working on

    d) Analyze the conflict:

    • Why do these conflict? (same lines edited, code moved, etc.)
    • Are they doing the same thing differently, or different things?
    • Is one a subset of the other?

    e) RECOMMEND a solution with reason

    Format like this:

    ═══════════════════════════════════════════════════════
    CONFLICT 1 of 3: backend/app/models/job.rb (lines 45-52)
    ═══════════════════════════════════════════════════════
    
    📍 STAGING VERSION:
    ```ruby
    def calculate_total
      items.sum(&:price)
    end
    

    → Calculates total by summing item prices → Last changed: Dec 10 by Rob

    📍 ROB'S VERSION:

    def calculate_total
      items.sum(&:price) * (1 + tax_rate)
    end
    

    → Adds tax calculation to the total → Part of: "Add GST to job totals" feature

    🔍 ANALYSIS: Rob added tax calculation. Staging doesn't have this. Rob's version is more complete.

    ✅ RECOMMENDATION: r (Rob's version)

    ┌─────────────────────────────────────────────────────┐ │ r = Rob's version │ │ t = sTaging version │ │ b = Combine both │ │ x = Abort entire merge │ └─────────────────────────────────────────────────────┘

    Your choice?

    
    
  5. Wait for user response before moving to next conflict

  6. Apply the chosen resolution immediately:

    # For Rob's version (theirs)
    git checkout --theirs <filename>
    git add <filename>
    
    # For staging version (ours)
    git checkout --ours <filename>
    git add <filename>
    
    # For combine - manually merge the code, then:
    git add <filename>
    
  7. Then show the next conflict (repeat steps 5-7 until all resolved)

  8. After ALL conflicts resolved, complete merge and push:

    git commit --no-edit
    git push origin staging
    
  9. Report final summary:

    ✅ MERGE COMPLETE
    
    Commits merged: X
    Files changed: Y
    
    Conflict resolutions:
    - file1.rb → Rob's version
    - file2.tsx → Staging version
    - file3.ts → Combined
    

Maintain Rd?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

[Rd on getagentictools](https://getagentictools.com/loops/gotekna-merge-rob-dev-to-staging?ref=badge)