useGit API
    Preparing search index...

    Interface BranchOptions

    interface BranchOptions {
        "--abbrev"?: string;
        "--color"?: "always" | "auto" | "never";
        "--column"?: string;
        "--set-upstream-to"?: string;
        "--sort"?: string;
        flags?: (
            | "--force"
            | "--all"
            | "--show-current"
            | "--list"
            | "--remotes"
            | "--delete"
            | "-D"
            | "--move"
            | "-M"
            | "--copy"
            | "-C"
            | "--ignore-case"
            | "--omit-empty"
            | "--no-column"
            | "--quiet"
            | "--no-abbrev"
            | "--unset-upstream"
        )[];
    }
    Index

    Properties

    "--abbrev"?: string

    Minimum abbreviation length for object names.

    "--color"?: "always" | "auto" | "never"

    Color branches to highlight current, local, and remote-tracking branches.

    "always"
    
    "--column"?: string

    Display branch listing in columns.

    "--set-upstream-to"?: string

    Set upstream branch.

    Sets the upstream branch explicitly, typically in the form: remote/branch.

    "origin/main"
    
    "--sort"?: string

    Sort branch output by the specified key.

    flags?: (
        | "--force"
        | "--all"
        | "--show-current"
        | "--list"
        | "--remotes"
        | "--delete"
        | "-D"
        | "--move"
        | "-M"
        | "--copy"
        | "-C"
        | "--ignore-case"
        | "--omit-empty"
        | "--no-column"
        | "--quiet"
        | "--no-abbrev"
        | "--unset-upstream"
    )[]

    Branch operation flags.

    Some flags require branch names:

    • --delete, -D
    • --move, -M
    • --copy, -C