---
title: "Force refresh worktree status"
method: POST
path: "/v1/git/worktrees/{id}/refresh"
tags: ["git"]
---

# Force refresh worktree status

`POST /v1/git/worktrees/{id}/refresh`

Forces an immediate refresh of a worktree's cached status including commit counts

## Path parameters

- `id` string, required

## Response `200`

OK

- object

## Changes

- **2025-07-30** `c07e43a97c31` — 1 info
  - endpoint added
- **2025-07-18** `21270d5158bd` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/wandb/apis/catnip-container-api/changes/v1/git/worktrees/:id/refresh/post.md)

---

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