Muhammad Naveed
Muhammad Naveed

Reputation: 85

How to delete any commit from commits table in Gitlab?

In this image you can see list of commit, I want to delete one of them, but I could not find the delete option.

enter image description here

Upvotes: 5

Views: 9539

Answers (1)

alejdg
alejdg

Reputation: 2473

To revert(the right nomenclature) a commit directly on Gitlab it all you need to do is:

  1. Enter the commit you want to revert by clicking on its name;
  2. Click on the button Options;
  3. Click Revert.

Note that 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.

You can follow the official documentation for more details: https://docs.gitlab.com/ee/user/project/merge_requests/revert_changes.html#reverting-a-commit

Upvotes: 1

Related Questions