Interface SwitchOptions

SwitchOptions defines the supported options for the Git switch command.

Hierarchy

  • SwitchOptions

Properties

--conflict?: string

Overrides the merge.conflictStyle configuration variable.

--create?: string

Creates a new branch.

--detach?: null

Switches to a commit for inspection and discardable experiments.

--discard-changes?: null

Proceeds even if the index or the working tree differs from HEAD.

--force-create?: string

Similar to --create except that if new-branch already exists, it will be reset to start-point.

--ignore-other-worktrees?: null

Proceeds when the wanted ref is already checked out by another worktree.

--merge?: null

Performs a a three-way merge between the current branch, your working tree contents, and the new branch.

--no-progress?: null

Suppresses progress reports to the standard error stream. See also --progress.

--no-recurse-submodules?: null

Does not update the content of all active submodules.

--no-track?: null

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

--orphan?: string

Creates a new orphan branch.

--progress?: null

Forces progress reports to the standard error stream. See also --no-progress.

--quiet?: null

Suppresses feedback messages.

--recurse-submodules?: null

Updates the content of all active submodules.

--track?: null | string

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