拉取请求与合并请求 [英] Pull request vs Merge request

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

问题描述



在Github中,我们可以看到Pull Request,在GitLab中,例如,我们看到Merge请求...是否有区别?

解决方案

GitLab's 合并请求功能等同于GitHub的拉取请求功能。这两种方法都是将更改从另一个分支或分支引入您的分支,并将更改与现有代码合并。它们是代码审查和变更管理的有用工具。



An 讨论了命名特性的差异:
$ b


合并或拉取请求是在git中创建的管理申请并要求分配的人合并两个分支。诸如GitHub和Bitbucket之类的工具会选择名称拉取请求,因为第一个手动操作将牵引特征分支。诸如GitLab和Gitorious之类的工具会选择名称合并请求,因为这是受让人请求的最终操作。在本文中,我们将它们称为合并请求。


合并请求不应与 git merge 命令。 pull request也不应该与 git pull 命令。这两个 git 命令都在幕后用于拉取请求和合并请求,但合并/拉取请求指的是比这两个命令更广泛的主题。


I was wondering what is the difference between a Pull request and a Merge request.

In Github we can see Pull Request and in GitLab for example, we see Merge Request... Is there a difference?

解决方案

GitLab's "merge request" feature is equivalent to GitHub's "pull request" feature. Both are means of pulling changes from another branch or fork into your branch and merging the changes with your existing code. They are useful tools for code review and change management.

An article from GitLab discusses the differences in naming the feature:

Merge or pull requests are created in a git management application and ask an assigned person to merge two branches. 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. In this article we'll refer to them as merge requests.

A "merge request" should not be confused with the git merge command. Neither should a "pull request" be confused with the git pull command. Both git commands are used behind the scenes in both pull requests and merge requests, but a merge/pull request refers to a much broader topic than just these two commands.

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

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