Skip to content

Latest commit

聽

History

History
37 lines (23 loc) 路 648 Bytes

File metadata and controls

37 lines (23 loc) 路 648 Bytes

GitPushBranchCommand

A Git command to push a local branch to a git remote.

Config

Type: object literal

Optional properties are denoted by *
remote*

Type: string
Default: origin

branchName

Type: string

failWhenRemoteBranchExists

Type: string
Default: true

鈩癸笍 聽 ExecCommand options are also applicable.

Example

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

const command = new Commands.GitPushBranchCommand({
  remote: "custom-remote",
  branchName: "v123-generated-files",
  failWhenRemoteBranchExists: false,
});