2022-01-11 15:29:47 +00:00
|
|
|
# glab mr create
|
|
|
|
|
2023-07-16 18:23:40 +01:00
|
|
|
> Manage GitLab merge requests.
|
2022-01-11 15:29:47 +00:00
|
|
|
> More information: <https://glab.readthedocs.io/en/latest/mr/create.html>.
|
|
|
|
|
|
|
|
- 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:
|
|
|
|
|
|
|
|
`glab mr create --fill`
|
|
|
|
|
|
|
|
- Create a draft merge request:
|
|
|
|
|
|
|
|
`glab mr create --draft`
|
|
|
|
|
|
|
|
- Create a merge request specifying the target branch, title, and description:
|
|
|
|
|
|
|
|
`glab mr create --target-branch {{target_branch}} --title "{{title}}" --description "{{description}}"`
|
|
|
|
|
|
|
|
- Start opening a merge request in the default web browser:
|
|
|
|
|
|
|
|
`glab mr create --web`
|