正式なドキュメントは英語版であり、この日本語訳はAI支援翻訳により作成された参考用のものです。日本語訳の一部の内容は人間によるレビューがまだ行われていないため、翻訳のタイミングにより英語版との間に差異が生じることがあります。最新かつ正確な情報については、英語版をご参照ください。

Merge your branch into the main branch

After you have created a branch, made the required changes, and committed them locally, you push your branch and its commits to GitLab.

In the response to the git push, GitLab provides a direct link to create the merge request. For example:

...
remote: To create a merge request for my-new-branch, visit:
remote:   https://gitlab.example.com/my-group/my-project/merge_requests/new?merge_request%5Bsource_branch%5D=my-new-branch

To get your branch merged into the main branch:

  1. Go to the page provided in the link that was provided by Git and create your merge request. The merge request’s Source branch is your branch and the Target branch should be the main branch.
  2. If necessary, have your merge request reviewed.
  3. Have someone merge your merge request, or merge the merge request yourself, depending on your process.