什么是合并请求? [英] What is a merge request?

查看:171
本文介绍了什么是合并请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在提供Cloud Git存储库的服务上,我总能找到合并请求.目的是什么?应该由谁来创建它?

On services offering cloud Git repositories, I always find merge requests. What is its purpose? Who was supposed to create it?

此外,合并请求的生命周期是多少?有人创建它,然后-它应该经过什么周期?

Also, what+s the lifecycle of a merge request? Someone creates it, and then - what cycles it should pass?

推荐答案

合并请求和合并请求基本上是指同一件事. GitHub和Bitbucket之类的工具选择名称 pull request (拉请求),因为第一个手动操作是拉功能分支. GitLab和Gitorious之类的工具选择名称合并请求,因为这是受让人请求的最终操作.

Merge Request and Pull request basically refers to same thing. Tools such as GitHub and Bitbucket choose the name pull request since the first manual action would be to pull the feature branch. Tools such as GitLab and Gitorious choose the name merge request since that is the final action that is requested of the assignee.

如果您在功能分支中工作并且想要将更改合并到主分支(例如,主分支)中,则会创建拉/合并"请求.合并请求充当代码检查工具,如果您的代码显示出缺陷/问题,那么任何人(通常是其他开发人员)都可以提交并推送修复程序.

Pull/Merge requests are created if you are working in a feature branch and wants to merge your change in main branch(eg. Master branch). The merge requests serves as a code review tool and if your code reveals shortcomings/issues anyone(usually other developers) can commit and push a fix.

生命周期:创建分支,修复某些问题或添加功能,创建请求/合并请求,然后将其分配给某人,他/她将查看您的修复并可以接受/拒绝请求/合并请求

Life cycle : You create a branch, fix some issue or add a feature, create a pull/merge request, then you assign it to someone, he/she will review your fix and can accept/reject the pull/merge request.

请注意,不要将合并/拉取请求与"git merge"或"git pull"命令混淆.

这篇关于什么是合并请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆