在页面中找到“Source Branch”(源分支)信息。 点击旁边的删除图标(通常是一个垃圾桶或类似的图标)。 确认删除操作。 如果需要在命令行中删除源分支(假设你已经有权限并且已经克隆了仓库),可以使用以下Git命令: bash git push origin --delete <source-branch-name> 其中,<source-branch-name>是...
Currently, when a merge request is created on GitLab using the --pr option, the checkbox "Delete source branch" remains unchecked. It looks like that GitLab doesn't automatically consider the related default in the GitLab repo project's merge request settings. We should set that option by ...
Delete Source Branch by Default If this is enabled, the source branch will be deleted after it is merged into the target branch. Fast-Forward Merge by Default If this is enabled, when there is a direct linear path from the source branch to the target branch, the source branch will directl...
It seems that I made a mistake on finding the relatedMergeRequests::DeleteSourceBranchWorkeron the logs as thecorrelation_idof those in the logs are different from thecorrelation_idof the merge action. I found this log entry (internal). I matched it with the merge action log entry based on...
Delete the source branch on merge You can delete the source branch for a merge request: When you create a merge request, by selectingDelete source branch when merge request accepted. When you merge a merge request, if you have the Maintainer role, by selectingDelete source branch. ...
Description GitLab defaults to checking the box to delete the source branch during a merge request. It checks this box regardless...
If the value is not explicitly set in the function call, the source branch deletetion should be based on the according setting in the merge request:This used to be the actual behavior in 2.6.0 and below.Reproducible example:#!/usr/bin/env python3 from gitlab import Gitlab gitlab = Git...
git merge完branch之后要delete一个branch吗? 可以删除! git branch -d NewFeature 但是远程仓库的分支还在 git branch -a git branch -d dev git branch -r -d origin/dev git push origin :dev
[].sha string Diff head SHA of the merge request. [].should_remove_source_branch boolean Indicates if the source branch of the merge request should be deleted after merge. [].source_branch string Source branch of the merge request. [].source_project_id integer ID of the merge request...
GitLab closes the merge request, but preserves records of the merge request, its comments, and any associated pipelines. Delete the source branch on merge You can delete the source branch for a merge request: When you create a merge request, by selecting Delete source branch when merge request...