Skip to content

Latest commit

History

History
30 lines (18 loc) 路 626 Bytes

git-switch-branch-command.md

File metadata and controls

30 lines (18 loc) 路 626 Bytes

GitSwitchCommand

A git command that switches to a desired branch.

This command will create a branch in case it does not exist.

Options

Type: object literal

Optional properties are denoted by *
branchName

Type: string
Default: undefined

The branch name to switch to.

鈩癸笍 聽 ExecaCommand options are also applicable.

Example

const { GitSwitchBranchCommand } = require("@abstracter/atomic-release/commands");

const command = new GitSwitchBranchCommand({
  branchName: "some-branch-name",
});