v1

latestSwagger 2.02026-07-175445133.1 KB
git

Sync worktree with source branch

Syncs a worktree with its source branch using merge or rebase strategy

post/v1/git/worktrees/{id}/sync

Path parameters

idstring required

Worktree ID

Request body

object required

Response

OK

idstring

Worktree ID

messagestring

Operation result message

strategystring

Strategy used for sync operations

Example response

{
  "id": "abc123-def456-ghi789",
  "message": "Worktree deleted successfully",
  "strategy": "rebase"
}