Forrest logo
back to the glab tool

glab-mr-merge:tldr:5e080

glab-mr-merge: Merge the merge request, removing the branch on both the local and the remote.
$ glab mr merge --remove-source-branch
try on your machine

The command "glab mr merge --remove-source-branch" is used to merge a merge request (MR) in GitLab and automatically remove the source branch after the merge process is complete. Here's a breakdown of the various components of the command: - "glab": This is a command-line tool called "glab" that provides a GitLab CLI (Command-Line Interface) for interacting with GitLab repositories. - "mr merge": This part of the command specifies that you want to perform a merge on a merge request (MR). - "--remove-source-branch": This flag instructs the merge command to delete the source branch once the merge is successfully completed. The source branch refers to the branch from which the MR was created. Combining all these components together, the command "glab mr merge --remove-source-branch" executes the merge action on a merge request in GitLab and automatically removes the source branch after successful completion of the merge.

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