Skip to content
GitLab
菜单
为什么选择 GitLab
定价
联系销售
探索
为什么选择 GitLab
定价
联系销售
探索
登录
获取免费试用
主导航
搜索或转到…
项目
GitLab
管理
动态
成员
标记
计划
议题
议题看板
里程碑
迭代
需求
代码
合并请求
仓库
分支
提交
标签
仓库图
比较修订版本
代码片段
锁定的文件
构建
流水线
作业
流水线计划
测试用例
产物
部署
发布
Package registry
Container registry
模型注册表
运维
环境
Terraform 模块
监控
事件
服务台
分析
价值流分析
贡献者分析
CI/CD 分析
仓库分析
代码评审分析
议题分析
洞察
模型实验
效能分析
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为极狐GitLab 提交贡献
提交反馈
隐私声明
快捷键
?
新增功能
4
代码片段
群组
项目
显示更多面包屑
gitlab-cn
GitLab
提交
f92b468c
提交
f92b468c
编辑于
4 years ago
作者:
Dmitriy Zaporozhets
提交者:
Craig Norris
4 years ago
浏览文件
操作
下载
补丁
差异文件
Add docs for MR default target project feature
上级
702a96b4
No related branches found
No related tags found
无相关合并请求
变更
2
隐藏空白变更内容
行内
左右并排
显示
2 个更改的文件
doc/user/project/merge_requests/creating_merge_requests.md
+21
-0
21 个添加, 0 个删除
doc/user/project/merge_requests/creating_merge_requests.md
doc/user/project/settings/index.md
+1
-0
1 个添加, 0 个删除
doc/user/project/settings/index.md
有
22 个添加
和
0 个删除
doc/user/project/merge_requests/creating_merge_requests.md
+
21
−
0
浏览文件 @
f92b468c
...
...
@@ -172,6 +172,9 @@ create a merge request from your fork to contribute back to the main project:
1.
In the left menu, go to
**Merge Requests**
, and click
**New Merge Request**
.
1.
In the
**Source branch**
drop-down list box, select your branch in your forked repository as the source branch.
1.
In the
**Target branch**
drop-down list box, select the branch from the upstream repository as the target branch.
You can set a
[
default target project
](
#set-the-default-target-project
)
to
change the default target branch (which can be useful when working with a
forked project).
1.
After entering the credentials, click
**Compare branches and continue**
to compare your local changes to the upstream repository.
1.
Assign a user to review your changes, and click
**Submit merge request**
.
...
...
@@ -183,6 +186,24 @@ fork from its upstream project in the **Settings > Advanced Settings** section b
For further details,
[
see the forking workflow documentation
](
../repository/forking_workflow.md
)
.
## Set the default target project
Merge requests have a source and a target project which are the same, unless
forking is involved. Creating a fork of the project can cause either of these
scenarios when you create a new merge request:
-
You target an upstream project (the project you forked, and the default
option).
-
You target your own fork.
If you want to have merge requests from a fork by default target your own fork
(instead of the upstream project), you can change the default by:
1.
In your project, go to
**Settings > General > Merge requests**
.
1.
In the
**Target project**
section, select the option you want to use for
your default target project.
1.
Select
**Save changes**
.
## New merge request by email **(FREE SELF)**
_This feature needs [incoming email](../../../administration/incoming_
email.md)
...
...
此差异已折叠。
点击以展开。
doc/user/project/settings/index.md
+
1
−
0
浏览文件 @
f92b468c
...
...
@@ -214,6 +214,7 @@ Set up your project's merge request settings:
-
Enable
[
merge only when all threads are resolved
](
../../discussions/index.md#only-allow-merge-requests-to-be-merged-if-all-threads-are-resolved
)
.
-
Enable
[
`delete source branch after merge` option by default
](
../merge_requests/getting_started.md#deleting-the-source-branch
)
-
Configure
[
suggested changes commit messages
](
../../discussions/index.md#configure-the-commit-message-for-applied-suggestions
)
-
Configure
[
the default target project
](
../merge_requests/creating_merge_requests.md#set-the-default-target-project
)
for merge requests coming from forks.
### Service Desk
...
...
此差异已折叠。
点击以展开。
预览
0%
加载中
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
保存评论
取消
想要评论请
注册
或
登录