glab mr merge 42 -s --remove-source-branch -y

Category: GitLab

glab mr merge 42 -s --remove-source-branch -y

Merge an MR with squash and cleanup

Merges merge request 42 into its target branch, squashing all commits into one with -s and deleting the source branch afterward. The -y flag skips the final confirmation. A red pipeline blocks the merge unless the project allows bypassing it.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.