Simon Schraeder
Published on

🤓 Quick note: Easy rebasing with GitLab

Sometimes you just want to merge your branch, but it got out of sync with the main branch. Rebasing can be annoying, especially if you have to check out the branch again locally when all you want is just to merge your MR.

Luckily, GitLab makes this super simple, but it's not super obvious in the UI.

All you need to do is write a comment that includes the command /rebase and GitLab will rebase the branch for you. It usually works, but the requirements are spelled out on GitLabs documentation.

Other useful quick actions include:

  • /approve to approve a MR
  • /close to close a MR
  • /draft to set the draft status
  • /merge to merge

Hopefully this makes your life easier :)