diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2019-07-23 12:41:23 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2019-07-23 12:41:23 +0300 |
commit | f4101aeac73368adcab223f14bf3d4d92d718b8b (patch) | |
tree | ac74ffc67d9c8605cc5660157344c1cec345309b /doc | |
parent | 9cffa428ad1b572437c38d7a3a41a26c35cc3576 (diff) | |
parent | 0d98f1bba2caf7ee5056510781c61db030551a66 (diff) |
Merge branch 'rm-src-branch' into 'master'
Support remove source branch on merge w/ push options
See merge request gitlab-org/gitlab-ce!30728
Diffstat (limited to 'doc')
-rw-r--r-- | doc/user/project/merge_requests/index.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/user/project/merge_requests/index.md b/doc/user/project/merge_requests/index.md index 08a5d2e03a3..d5ca853eff5 100644 --- a/doc/user/project/merge_requests/index.md +++ b/doc/user/project/merge_requests/index.md @@ -286,6 +286,7 @@ as pushing changes: - Create a new merge request for the pushed branch. - Set the target of the merge request to a particular branch. - Set the merge request to merge when its pipeline succeeds. +- Set the merge request to remove the source branch when it's merged. ### Create a new merge request using git push options @@ -329,6 +330,19 @@ pipeline succeeds at the same time using a `-o` flag per push option: git push -o merge_request.create -o merge_request.merge_when_pipeline_succeeds ``` +### Set removing the source branch using git push options + +To set an existing merge request to remove the source branch when the +merge request is merged, the +`merge_request.remove_source_branch` push option can be used: + +```sh +git push -o merge_request.remove_source_branch +``` + +You can also use this push option in addition to the +`merge_request.create` push option. + ## Find the merge request that introduced a change > [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/issues/2383) in GitLab 10.5. |