Databricks SDK for JavaScript
    Preparing search index...

    Interface UpdateRepoRequest

    interface UpdateRepoRequest {
        branch?: string;
        dangerouslyForceDiscardAll?: boolean;
        gitCredentialId?: bigint;
        id?: bigint;
        sparseCheckout?: SparseCheckoutUpdate;
        tag?: string;
    }
    Index

    Properties

    branch?: string

    Branch that the local version of the repo is checked out to.

    dangerouslyForceDiscardAll?: boolean

    WARNING: DESTRUCTIVE AND IRREVERSIBLE. If true, permanently deletes ALL uncommitted changes in the Git folder — staged, unstaged, and untracked files — before updating. Lost data CANNOT be recovered.

    NEVER use this on Git folders where users author or edit files. This flag is intended ONLY for automated jobs that treat the Git folder as a read-only mirror of a remote branch and need to force-sync it. If any user has uncommitted work in the Git folder, that work will be permanently destroyed without warning.

    Local commits that have been made but not yet pushed to the remote are preserved.

    gitCredentialId?: bigint

    Git credential ID to use for this update operation. The Git credential must be configured for the current user.

    id?: bigint

    ID of the Git folder (repo) object in the workspace.

    sparseCheckout?: SparseCheckoutUpdate

    If specified, update the sparse checkout settings. The update will fail if sparse checkout is not enabled for the repo.

    tag?: string

    Tag that the local version of the repo is checked out to. Updating the repo to a tag puts the repo in a detached HEAD state. Before committing new changes, you must update the repo to a branch instead of the detached HEAD.