---
title: "Check sync conflicts"
method: GET
path: "/v1/git/worktrees/{id}/sync/check"
tags: ["git"]
---

# Check sync conflicts

`GET /v1/git/worktrees/{id}/sync/check`

Checks if syncing a worktree would cause merge conflicts

## Path parameters

- `id` string, required

## Response `200`

OK

- InternalHandlersConflictCheckResponse — Response containing conflict information for sync/merge operations
  - `conflict_files` string[] — List of files with conflicts
  - `has_conflicts` boolean — Whether conflicts were detected
  - `message` string — Status message
  - `operation` string — Operation type (sync/merge)
  - `worktree_name` string — Name of the worktree

---

[API](https://skmtc.net/wandb/apis/catnip-container-api.md) · [All operations](https://skmtc.net/wandb/apis/catnip-container-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wandb/catnip-container-api/versions/a075b0fa501a/schema)
