v1

latestSwagger 2.02026-07-175445133.1 KB
git

Merge worktree to main

Merges a local repo worktree's changes back to the main repository

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

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"
}