Document the Delete Merged Branches functionality
* Note that protected branches will not be part of the deletion
This commit is contained in:
parent
e34e576104
commit
0dbf4b87ee
5 changed files with 22 additions and 0 deletions
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: Document the Delete Merged Branches functionality
|
||||
merge_request:
|
||||
author:
|
|
@ -59,6 +59,7 @@ Manage files and branches from the UI (user interface):
|
|||
- Branches
|
||||
- [Create a branch](user/project/repository/web_editor.md#create-a-new-branch)
|
||||
- [Protected branches](user/project/protected_branches.md#protected-branches)
|
||||
- [Delete merged branches](user/project/branches.md#delete-merged-branches)
|
||||
|
||||
### Issues and Merge Requests (MRs)
|
||||
|
||||
|
|
|
@ -251,6 +251,8 @@ curl --request DELETE --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gi
|
|||
|
||||
Will delete all branches that are merged into the project's default branch.
|
||||
|
||||
Protected branches will not be deleted as part of this operation.
|
||||
|
||||
```
|
||||
DELETE /projects/:id/repository/merged_branches
|
||||
```
|
||||
|
|
15
doc/user/project/branches.md
Normal file
15
doc/user/project/branches.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Branches
|
||||
|
||||
## Delete Merged Branches
|
||||
|
||||
> [Introduced][ce-6449] in GitLab 8.14.
|
||||
|
||||
![Delete Merged Branches](img/delete_merged_branches.png)
|
||||
|
||||
This feature allows merged branches to be deleted in bulk. Only branches that have been merged and are not protected will be deleted as part of this operation.
|
||||
|
||||
It's particularly useful to clean up old branches that were not deleting automatically when a Merge Request was merged.
|
||||
|
||||
---
|
||||
|
||||
[ce-6449]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6449 "Add button to delete all merged branches"
|
BIN
doc/user/project/img/delete_merged_branches.png
Normal file
BIN
doc/user/project/img/delete_merged_branches.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 161 KiB |
Loading…
Reference in a new issue