Home > Development Tools > git > body text

How to delete merge records in gitlab

PHPz
Release: 2023-04-06 13:45:20
Original
1865 people have browsed it

When using GitLab for project management, as the project becomes larger and larger, the number of merge requests also increases. However, sometimes we find that some merge requests do not need to be logged, or some unexpected errors occur and they need to be deleted. This article will introduce how to delete merge records in GitLab.

  1. Delete unmerged merge requests

Some merge requests have not been merged for some reason, then you can delete them directly. On GitLab's merge request page, find and enter the merge request that needs to be deleted, and then click the "Delete" button. A prompt box will appear asking if you are sure you want to delete this merge request. Once confirmed, the merge request can be successfully deleted.

  1. Delete merged merge requests

In fact, merged merge requests in GitLab can also be deleted. Find the merged merge you want to delete on the merge request page. request and enter the details page of the merge request. Find a small arrow next to the "Merge" button on the page. Click the arrow and a drop-down menu will pop up. Select "Reopen Merge Request" in the drop-down menu. Then click the arrow again and select "Close Merge Request" to completely delete the merged merge request.

  1. Delete branch

After a merge request is successfully merged, the corresponding branch should usually be deleted. In GitLab, deleting a branch is easy. First, enter the warehouse where the branch is located in the project, find the branch, and click the trash can icon to the right of the branch name to delete the branch.

  1. Audit requests to delete merge records

In GitLab, administrator rights are required to completely delete merge records. If you are not an administrator, you can only apply to delete a merge request or branch, and then the administrator will need to review and delete it. In GitLab's merge request or branch page, find the "Delete Request" option and initiate a deletion request. An administrator will review the pull request on GitLab, confirm that there are no other dependencies on the merge request or branch, and then delete them completely.

In short, it is very simple to delete merge requests in GitLab. As long as you master these methods, you can successfully delete unnecessary merge records. In some cases, deleting a merge request or branch may cause changes to the project's history, so be sure to think twice before deleting it and make sure there are no other dependencies.

The above is the detailed content of How to delete merge records in gitlab. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template