Forrest logo
back to the glab tool

glab-mr-create:tldr:d871a

glab-mr-create: Create a draft merge request.
$ glab mr create --draft
try on your machine

The command "glab mr create --draft" is used in the GitLab command-line interface (CLI) tool, often referred to as "glab."

Here's an explanation of the command and its options:

  • "glab": This is the name of the GitLab CLI tool, which allows you to interact with GitLab repositories and perform various actions.
  • "mr": It stands for "Merge Request" which is a feature in GitLab that allows developers to propose changes to a project's codebase.
  • "create": This is an action or subcommand in the glab CLI that creates a new merge request in a GitLab repository.
  • "--draft": It is an option or flag that can be added to the "glab mr create" command. When this option is used, it creates a merge request as a draft. A draft merge request is like a work-in-progress and is not ready for review or merging. It allows you to share your changes with others without triggering a full review process.

By running the "glab mr create --draft" command, you are instructing the glab CLI tool to create a draft merge request in the repository you are currently working on.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the glab tool