Reverting changes
You can use Git’s powerful feature to revert any commit by clicking the Revert button in merge requests and commit details.
Reverting a merge request
After the Merge Request has been merged, a Revert button will be available to revert the changes introduced by that merge request.
After you click that button, a modal will appear where you can choose to revert the changes directly into the selected branch or you can opt to create a new merge request with the revert changes.
After the merge request has been reverted, the Revert button will not be available anymore.
Reverting a commit
You can revert a commit from the commit details page:
Similar to reverting a merge request, you can opt to revert the changes directly into the target branch or create a new merge request to revert the changes.
After the commit has been reverted, the Revert button will not be available anymore.
Please note that when reverting merge commits, the mainline will always be the first parent. If you want to use a different mainline then you need to do that from the command line.
Here is a quick example to revert a merge commit using the second parent as the mainline:
git revert -m 2 7a39eb0
Help and feedback
If there's something you don't like about this feature
To propose functionality that GitLab does not yet offer
To further help GitLab in shaping new features
If you didn't find what you were looking for
If you want help with something very specific to your use case, and can use some community support
POST ON GITLAB FORUM
If you have problems setting up or using this feature (depending on your GitLab subscription)
REQUEST SUPPORT
To view all GitLab tiers and features or to upgrade
If you want to try all features available in GitLab.com
If you want to try all features available in GitLab self-managed
If you spot an error or a need for improvement and would like to fix it yourself in a merge request
EDIT THIS PAGE
If you would like to suggest an improvement to this doc