Interface BranchOptions

BranchOptions defines the supported options for the Git branch command.

Hierarchy

Properties

--abbrev?: string | number

Show the shortest prefix that is at least hexdigits long that uniquely identifies the object. See also --no-abbrev.

--all?: null

Lists both remote-tracking branches and local branches.

--column?: null | string | string[]

Displays the tag listing in columns. See also --no-column.

--contains?: null | string | string[]

Lists branches which contain the specified commit; HEAD if not specified. See also --no-contains.

--copy?: null

Copies a branch.

--create-reflog?: null

Creates the branch’s reflog. See also --no-create-reflog.

--delete?: null

Deletes an branch.

--force?: null

Replaces an existing branch with the given name, instead of failing.

--format?: string

Interpolates %(fieldname) from a branch ref being shown and the object it points at.

--ignore-case?: null

Makes sorting and filtering tags case insensitive.

--list?: null

Lists branches.

--merged?: null | string | string[]

Lists branches whose commits are reachable from the specified commit; HEAD if not specified. See also --no-merged.

--move?: null

Moves/renames a branch.

--no-abbrev?: null

Displays full sha1s in the output. See also --abbrev.

--no-column?: null

Does not display the tag listing in columns. See also --column.

--no-contains?: null | string | string[]

Lists branches which don't contain the specified commit; HEAD if not specified. See also --contains.

--no-create-reflog?: null

Overrides an earlier --create-reflog. See also --create-reflog.

--no-merged?: null | string | string[]

Lists refs whose commits are not reachable from the specified commit; HEAD if not specified. See also --merged.

--no-track?: null

Does not set up "upstream" configuration. See also --track.

--points-at?: null | string

Lists branches of the given object.

--quiet?: null

Suppresses non-error messages.

--recurse-submodules?: null

Causes the current command to recurse into submodules.

--remotes?: null

Lists or deletes (if used with --delete) the remote-tracking branches.

--set-upstream-to?: string

Sets "upstream" tracking configuration to the specified branch.

--show-current?: null

Prints the name of the current branch.

--sort?: string | string[]

Sorts based on the given keys.

--track?: null | string

Sets "upstream" tracking configuration for the new branch. See also --no-track.

--unset-upstream?: null

Removes "upstream" tracking configuration.

--verbose?: null | [null, null?]

Show the sha1 and commit subject line for each head in list mode. May be repeated to include the path of the linked worktree (if any) and the name of the upstream branch.