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

# Git Status

> Retrieves the current status of the configured Git repository. Returns information about modified, added, and deleted files, as well as the current branch and commit hash.



## OpenAPI

````yaml GET /git/status
openapi: 3.1.0
info:
  title: FinWatch API
  description: >-
    FinWatch REST API for real-time transaction monitoring, rule evaluation, and
    instruction management.
  version: 1.0.0
  contact:
    name: FinWatch Support
    url: https://docs.finwatch.finance
servers:
  - url: http://localhost:8081
    description: Local development server
security: []
tags:
  - name: Transactions
    description: >-
      Inject transactions for evaluation, retrieve transaction details, and
      handle webhook events.
  - name: Instructions
    description: >-
      Create, list, retrieve, and delete monitoring rules written in
      Watchscript.
  - name: Git
    description: Manage rules with Git for version control — status, pull, push, and clone.
paths:
  /git/status:
    get:
      tags:
        - Git
      summary: Get Git Status
      description: >-
        Retrieves the current status of the configured Git repository. Returns
        information about modified, added, and deleted files, as well as the
        current branch and commit hash.
      operationId: getGitStatus
      responses:
        '200':
          description: Git status retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GitStatusResponse'
              example:
                branch: main
                commit: abc123def456
                is_clean: false
                modified_files:
                  - rules/high-value.ws
                added_files:
                  - rules/velocity.ws
                deleted_files: []
        '500':
          description: Failed to get Git status or repository not configured
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    GitStatusResponse:
      type: object
      properties:
        branch:
          type: string
          description: Current branch name
        commit:
          type: string
          description: Current commit hash
        is_clean:
          type: boolean
          description: Whether the working directory is clean (no uncommitted changes)
        modified_files:
          type: array
          items:
            type: string
          description: List of modified files
        added_files:
          type: array
          items:
            type: string
          description: List of newly added files
        deleted_files:
          type: array
          items:
            type: string
          description: List of deleted files
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
        code:
          type: string
          description: Error code

````