gitlabctl

Cross platform Gitlab management cli written in Go. Download the executable with no dependencies!

View on GitHub

gitlabctl new branch

Create a new branch for a specified project

Synopsis

Create a new branch for a specified project

gitlabctl new branch [flags]

Examples

# create a develop branch from master branch for project groupx/myapp
gitlabctl new branch develop --project=groupx/myapp --ref=master

Options

  -h, --help             help for branch
  -p, --project string   The name or ID of the project
  -r, --ref string       The branch name or commit SHA to create branch from

Options inherited from parent commands

      --config string   config file (default is $HOME/.gitlabctl.yaml)
  -o, --out string      Print the command output to the desired format. (json, yaml, simple) (default "simple")

SEE ALSO