---
title: "Get the status of the current working tree"
method: GET
path: "/version/status"
tags: ["versioning"]
---

# Get the status of the current working tree

`GET /version/status`

Get the status of the current working tree of the Git repository used for Cribl configuration. The response includes details about modified, staged, untracked, and conflicted files, as well as branch and remote tracking information.

## Response `200`

The requested GitStatusResult object in a single-item list.

- CountedGitStatusResult
  - `count` integer, required — number of items present in the items array
  - `items` GitStatusResult[], required — List of items in this response.
    - `ahead` integer, required — Number of local commits that have not been pushed to the remote repository.
    - `behind` integer, required — Number of commits in the remote repository that have not been pulled to the local branch.
    - `conflicted` string[], required — Array of file paths that have merge conflicts.
    - `created` string[], required — Array of file paths for newly created files that are staged for commit.
    - `current` string, required — Name of the current Git branch.
    - `deleted` string[], required — Array of file paths for deleted files that are staged for commit.
    - `files` object[], required — Array of all changed files with their index and working directory status codes.
      - `index` string, required — Status code for the file in the index (staging area), using Git short-format notation.
      - `path` string, required — File path relative to the configuration root.
      - `working_dir` string, required — Status code for the file in the working directory, using Git short-format notation.
    - `modified` string[], required — Array of file paths for modified files that are staged for commit.
    - `not_added` string[], required — Array of file paths that have been modified but are not staged for commit.
    - `renamed` object[], required — Array of file rename operations that are staged for commit.
      - `from` string, required — Original file path before the rename.
      - `to` string, required — New file path after the rename.
    - `staged` string[], required — Array of file paths that are staged for the next commit.

## Other responses

- `401` — Authentication failed (missing or invalid credentials or Bearer token).
- `500` — Unexpected server error.

---

[API](https://skmtc.dev/criblio/apis/cribl-api-reference.md) · [All operations](https://skmtc.dev/criblio/apis/cribl-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/criblio/cribl-api-reference/revisions/56cb25079271/schema)
