当前位置:   article > 正文

pull request 和 merge request 的区别_github merge request

github merge request

gitlab的文档里说,Pull Request是github的叫法,因为(主仓库)第一件事要pull feature分支。同样的功能在gitlab里叫Merge Request,因为feature分支最终要被合入(目标分支)。

Merge or pull requests are created in a Git management application. They ask an assigned person to merge two branches. Tools such as GitHub and Bitbucket choose the name “pull request”, because the first manual action is to pull the feature branch. Tools such as GitLab and others choose the name “merge request”, because the final action is to merge the feature branch. This article refers to them as merge requests.

这篇文章里说,用户发起PR是为了(让主仓库管理员)执行git pull(从别人fork的仓库fetch并merge,这是连个仓库的事)。发起MR是为了执行git merge(这是一个一个仓库的事)

请添加图片描述

Remember that, in both cases, there’s a difference between the request and the command. For example, users initiate a pull request because they want to execute a Git pull command, and users submit a merge request when they want to run Git merge.

总结一下,我个人的理解:

github是开源社区,大多是项目是公共仓库,非核心成员开发完新功能是push到他们fork的仓库,因此发起PR,让核心成员先pull再merge。

而gitlab项目更多时候是团队私有的,开发人员开发完代码push到远程,这个远程本来就是主仓库了,所以发起MR,让有权限的人review完了merge。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/446618
推荐阅读
相关标签
  

闽ICP备14008679号