2022-01-11 22:29:47 +07:00
|
|
|
# glab mr create
|
|
|
|
|
2023-07-16 19:23:40 +02:00
|
|
|
> Manage GitLab merge requests.
|
2025-05-11 20:03:01 +03:00
|
|
|
> More information: <https://gitlab.com/gitlab-org/cli/-/blob/main/docs/source/mr/create.md>.
|
2022-01-11 22:29:47 +07:00
|
|
|
|
|
|
|
- Interactively create a merge request:
|
|
|
|
|
|
|
|
`glab mr create`
|
|
|
|
|
|
|
|
- Create a merge request, determining the title and description from the commit messages of the current branch:
|
|
|
|
|
2025-05-11 20:03:01 +03:00
|
|
|
`glab mr create {{[-f|--fill]}}`
|
2022-01-11 22:29:47 +07:00
|
|
|
|
|
|
|
- Create a draft merge request:
|
|
|
|
|
|
|
|
`glab mr create --draft`
|
|
|
|
|
|
|
|
- Create a merge request specifying the target branch, title, and description:
|
|
|
|
|
2025-05-11 20:03:01 +03:00
|
|
|
`glab mr create {{[-b|--target-branch]}} {{target_branch}} {{[-t|--title]}} "{{title}}" {{[-d|--description]}} "{{description}}"`
|
2022-01-11 22:29:47 +07:00
|
|
|
|
|
|
|
- Start opening a merge request in the default web browser:
|
|
|
|
|
2025-05-11 20:03:01 +03:00
|
|
|
`glab mr create {{[-w|--web]}}`
|