commands.sh

glab mr create

all

Manage GitLab merge requests.

More info →

Options (5)

-f, --fillboolean

Create a merge request, determining the title and description from the commit messages of the current branch

Example: glab mr create {{[-f|--fill]}}
-b, --target-branchboolean

Create a merge request specifying the target branch, title, and description

Example: glab mr create {{[-b|--target-branch]}} {{target_branch}} {{[-t|--title]}} "{{title}}" {{[-d|--description]}} "{{description}}"
-t, --titleboolean

Create a merge request specifying the target branch, title, and description

Example: glab mr create {{[-b|--target-branch]}} {{target_branch}} {{[-t|--title]}} "{{title}}" {{[-d|--description]}} "{{description}}"
-d, --descriptionboolean

Create a merge request specifying the target branch, title, and description

Example: glab mr create {{[-b|--target-branch]}} {{target_branch}} {{[-t|--title]}} "{{title}}" {{[-d|--description]}} "{{description}}"
-w, --webboolean

Start opening a merge request in the default web browser

Example: glab mr create {{[-w|--web]}}

Examples (5)

Interactively create a merge request

Create a merge request, determining the title and description from the commit messages of the current branch

glab mr create [-f|--fill]

Create a draft merge request

Create a merge request specifying the target branch, title, and description

glab mr create [-b|--target-branch] target_branch [-t|--title] "title" [-d|--description] "description"

Start opening a merge request in the default web browser

glab mr create [-w|--web]
made by @shridhargupta | data from tldr-pages