> ## 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.

# Watch

> Configure Git-based rule loading for your Watch service.

Configure Git-based rule loading for your Watch service. When `WATCH_SCRIPT_GIT_REPO` is set, Watch clones the repository, loads `.ws` rule files from it, and keeps the local copy in sync.

For additional Watch settings, see [Watch configuration](/watch/configuration).

```dotenv .env wrap theme={"system"}
WATCH_SCRIPT_GIT_REPO=
WATCH_SCRIPT_GIT_BRANCH=main
WATCH_SCRIPT_GIT_USERNAME=git
WATCH_SCRIPT_GIT_TOKEN=
```

| Environment variable        | Description                                                                                                                              |
| :-------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------- |
| `WATCH_SCRIPT_GIT_REPO`     | Git repository URL containing Watch rule files. When set, Watch loads rules from this repository instead of relying only on local files. |
| `WATCH_SCRIPT_GIT_BRANCH`   | Git branch Watch tracks when `WATCH_SCRIPT_GIT_REPO` is set. Use the branch that contains the rules for this deployment.                 |
| `WATCH_SCRIPT_GIT_USERNAME` | Username used to authenticate when cloning a private rules repository over HTTPS.                                                        |
| `WATCH_SCRIPT_GIT_TOKEN`    | Personal access token or password used with `WATCH_SCRIPT_GIT_USERNAME` for private repository access. Store this as a secret.           |
