1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-13 16:55:28 +02:00
tldr/pages/common/glab-mr-create.md

25 lines
714 B
Markdown
Raw Normal View History

2022-01-11 22:29:47 +07:00
# glab mr create
> 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]}}`