> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blnkfinance.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Git status

> Check the configured Git repository state for Watch script sync.

<Note>Blnk Watch is currently in beta. [Send us a message](mailto:support@blnkfinance.com)</Note>

Use this endpoint to inspect the Git repository Watch uses for rule scripts. It is only meaningful when `WATCH_SCRIPT_GIT_REPO` is configured in your [Watch configuration](/watch/configuration).

<Info>
  When Git sync is not configured, the response returns `"configured": false` with an error message.
</Info>

### Request

This endpoint has no path, query, or body parameters.

<RequestExample>
  ```bash theme={"system"}
  curl http://localhost:8081/git/status
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={"system"}
  {
    "configured": true,
    "repo_url": "https://github.com/user/watch-scripts.git",
    "branch": "main",
    "local_path": "watch_scripts",
    "current_commit": "abc123def456",
    "remote_commit": "abc123def456",
    "up_to_date": true
  }
  ```

  ```json 200 Not configured theme={"system"}
  {
    "configured": false,
    "error": "Git repository not configured"
  }
  ```
</ResponseExample>

### Response fields

<ResponseField name="configured" type="boolean">
  Whether a Git repository is configured for Watch script sync.
</ResponseField>

<ResponseField name="repo_url" type="string">
  Git repository URL from `WATCH_SCRIPT_GIT_REPO`.
</ResponseField>

<ResponseField name="branch" type="string">
  Branch name Watch tracks. Defaults to `main` when not set.
</ResponseField>

<ResponseField name="local_path" type="string">
  Local directory where Watch stores cloned scripts.
</ResponseField>

<ResponseField name="current_commit" type="string">
  Current local commit hash.
</ResponseField>

<ResponseField name="remote_commit" type="string">
  Latest commit hash on the remote branch, when available.
</ResponseField>

<ResponseField name="up_to_date" type="boolean">
  Whether the local and remote commits match.
</ResponseField>

<ResponseField name="error" type="string">
  Error message when Git is not configured or status lookup fails.
</ResponseField>

***

## Need help?

We are very happy to help you make the most of Blnk, regardless of whether it is your first time or you are switching from another tool.

To ask questions or discuss issues, please [contact us](mailto:support@blnkfinance.com) or [join our Discord community](https://discord.gg/7WNv94zPpx).

**Connect your ledger to Blnk Cloud**

Sign up and manage your ledger with our back-office dashboard. You can invite teammates to collaborate and manage your ledger operations directly from the dashboard.
