resolve
Use the GitWand CLI to automatically resolve trivial merge conflicts, then handle remaining complex hunks manually.
Use this workflow to assess merge risk BEFORE actually merging a branch. This avoids surprises and lets you plan conflict resolution in advance.
$ npx -y skills add devlint/GitWand --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/previewContext preview
What this command does when you run it.
Use this workflow to assess merge risk BEFORE actually merging a branch. This avoids surprises and lets you plan conflict resolution in advance.
Use this workflow to assess merge risk BEFORE actually merging a branch. This avoids surprises and lets you plan conflict resolution in advance.
Determine which branch you want to merge into the current branch. Example: merging `feature/auth` into `main`.
git merge --no-commit --no-ff <source-branch> 2>&1 || true
If conflicts arise, Git leaves conflict markers in the working tree without committing.
npx gitwand resolve --json --dry-run
The `--dry-run` flag ensures no files are modified. The JSON output shows:
From the JSON output, evaluate:
| Metric | Low risk | Medium risk | High risk | |--------|----------|-------------|-----------| | Auto-resolvable % | > 80% | 50-80% | < 50% | | Complex hunks | 0-1 | 2-5 | > 5 | | Files affected | 1-3 | 4-10 | > 10 |
**If low risk:** proceed with `npx gitwand resolve` to auto-resolve, then handle remaining hunks.
**If medium/high risk:** review the complex hunks first. The `explanation` field in each unresolved hunk describes WHY it's complex (overlapping edits, both sides modified the same function, etc.).
git merge --abort
This cleanly restores the working tree to its pre-merge state.
# Start the merge simulation git merge --no-commit --no-ff feature/auth # Analyze conflicts npx gitwand resolve --json --dry-run | jq '.summary' # If acceptable, resolve for real npx gitwand resolve # Handle remaining conflicts manually, then git add -A && git commit # If not acceptable, abort git merge --abort
The Git client that actually resolves conflicts: 8 deterministic patterns auto-resolve the ones that were never decisions, full trace on the rest. Native (Tauri 2 + Rust), free, MIT.
Repo: devlint/GitWand