Skip to main content
GET
/
api
/
v1
/
git
/
worktrees
List worktrees
curl --request GET \
  --url http://localhost:3000/api/v1/git/worktrees \
  --cookie nut-session=
{
  "success": true,
  "data": {
    "worktrees": [
      {
        "path": "<string>",
        "branch": "<string>",
        "commit": "<string>",
        "locked": true,
        "prunable": true
      }
    ]
  }
}

Authorizations

nut-session
string
cookie
required

Session cookie authentication

Response

List of worktrees

success
boolean
required
data
object