.nh .TH "glab" "1" "Sep 2026" "Auto generated by spf13/cobra" "" .SH NAME glab-mr-create - Create a new merge request. .SH SYNOPSIS \fBglab mr create [flags]\fP .SH DESCRIPTION Defaults to the current branch as the source branch. Use \fB--fill\fR to automatically fill the title and description from the commit history. Use \fB--draft\fR to create a draft merge request. .PP The \fB--recover\fR flag is an experiment: it might be unstable or removed at any time, and is not ready for production use. For more information, see https://docs.gitlab.com/policy/development_stages_support/. .SH OPTIONS \fB--allow-collaboration\fP[=false] Allow commits from other members. Set to true/false to override project defaults, or omit to use project settings. .PP \fB-a\fP, \fB--assignee\fP=[] Assign merge request to people by their \fBusernames\fR\&. Multiple usernames can be comma-separated or specified by repeating the flag. .PP \fB--auto-merge\fP[=false] Set the merge request to merge when all merge checks pass. .PP \fB--copy-issue-labels\fP[=false] Copy labels from issue to the merge request. Used with --related-issue. .PP \fB--create-source-branch\fP[=false] Create a source branch if it does not exist. .PP \fB-d\fP, \fB--description\fP="" Supply a description for the merge request. Set to "-" to open an editor. .PP \fB--description-file\fP="" Read the merge request description from a file. Use "-" to read from standard input. .PP \fB--draft\fP[=false] Mark merge request as a draft. .PP \fB-f\fP, \fB--fill\fP[=false] Do not prompt for title or description, and just use commit info. Sets \fBpush\fR to \fBtrue\fR, and pushes the branch. .PP \fB--fill-commit-body\fP[=false] Fill description with each commit body when multiple commits. Can only be used with --fill. .PP \fB-H\fP, \fB--head\fP="" Select another head repository using the \fBOWNER/REPO\fR or \fBGROUP/NAMESPACE/REPO\fR format, the project ID, or the full URL. .PP \fB-l\fP, \fB--label\fP=[] Add label by name. Multiple labels can be comma-separated or specified by repeating the flag. .PP \fB-m\fP, \fB--milestone\fP="" The global ID or title of a milestone to assign. .PP \fB--no-editor\fP[=false] Don't open editor to enter a description. If true, uses prompt. Defaults to false. .PP \fB--push\fP[=false] Push committed changes after creating merge request. Make sure you have committed changes. .PP \fB--recover\fP[=false] Save the options to a file if the merge request creation fails. If the file exists, the options are loaded from the recovery file. (EXPERIMENTAL) .PP \fB-i\fP, \fB--related-issue\fP="" Create a merge request for an issue. If --title is not provided, uses the issue title. .PP \fB--remove-source-branch\fP[=false] Remove source branch on merge. Set to true/false to override project defaults, or omit to use project settings. .PP \fB--reviewer\fP=[] Request review from users by their \fBusernames\fR\&. Multiple usernames can be comma-separated or specified by repeating the flag. .PP \fB--signoff\fP[=false] Append a DCO signoff to the merge request description. .PP \fB-s\fP, \fB--source-branch\fP="" Create a merge request from this branch. Default is the current branch. .PP \fB--squash-before-merge\fP[=false] Squash commits into a single commit when merging. Set to true/false to override project defaults, or omit to use project settings. .PP \fB-b\fP, \fB--target-branch\fP="" The target or base branch into which you want your code merged into. .PP \fB--template\fP="" Name of a template in '.gitlab/merge_request_templates/' to pre-populate the description. The '.md' extension is optional. Templates are loaded from the local repository only. .PP \fB-t\fP, \fB--title\fP="" Supply a title for the merge request. .PP \fB-w\fP, \fB--web\fP[=false] Continue merge request creation in a browser. .PP \fB--wip\fP[=false] Mark merge request as a draft. Alternative to --draft. .PP \fB-y\fP, \fB--yes\fP[=false] Skip submission confirmation prompt. Use --fill to skip all optional prompts. .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB-h\fP, \fB--help\fP[=false] Show help for this command. .PP \fB-R\fP, \fB--repo\fP="" Select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted. .SH EXAMPLE .EX # Create a merge request interactively from the current branch glab mr new # Assign a user and set a title without prompting for description glab mr create -a username -t "fix annoying bug" # Fill title and description from commits, mark as draft, add a label glab mr create -f --draft --label RFC # Fill from commits and preview the compare page in the browser glab mr create --fill --web # Fill from commits, expand each commit body into the description glab mr create --fill --fill-commit-body --yes # Use a merge request template for the description glab mr create -t "Fix login bug" --template bug_fix glab mr create -t "Security patch" --template security_fix.md --yes # Create against another project without a local clone. All inputs must be passed as flags; no --push, --fill, or --template. glab mr create --repo group/project --source-branch feature-branch --target-branch main --title "Add feature" --description "Details..." --yes # Create a fork merge request from your fork into the upstream project, without a local clone. glab mr create --repo upstream/project --head your-namespace/project --source-branch feature-branch --target-branch main --title "Add feature" --description "Details..." --yes # Read the description from a file glab mr create -t "Fix login bug" --description-file description.md # Read the description from standard input cat description.md | glab mr create -t "Fix login bug" --description-file - .EE .SH SEE ALSO \fBglab-mr(1)\fP