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

> Commits all current changes and pushes them to the remote Git repository. Provide a commit message describing the changes made to the rules.



## OpenAPI

````yaml POST /git/push
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/push:
    post:
      tags:
        - Git
      summary: Git Push
      description: >-
        Commits all current changes and pushes them to the remote Git
        repository. Provide a commit message describing the changes made to the
        rules.
      operationId: gitPush
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GitPushRequest'
            example:
              message: Add high-value transaction rule
      responses:
        '200':
          description: Push successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GitPushResponse'
              example:
                message: Push successful
                commit: def789abc012
                branch: main
        '400':
          description: Invalid request or no changes to commit
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Failed to push to remote
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    GitPushRequest:
      type: object
      required:
        - message
      properties:
        message:
          type: string
          description: Commit message describing the changes
    GitPushResponse:
      type: object
      properties:
        message:
          type: string
          description: Push status message
        commit:
          type: string
          description: New commit hash
        branch:
          type: string
          description: Branch pushed to
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
        code:
          type: string
          description: Error code

````