git - pull 请求与 merge 请求

标签 git github gitlab

pull 请求和 merge 请求有什么区别?

在 GitHub 中,它是一个 Pull Request,而在 GitLab 中,它是一个 Merge Request。那么,这两者之间有区别吗?

最佳答案

GitLab 的 "merge request"功能等同于 GitHub 的 "pull request"特征。两者都是从另一个分支或分支中 pull 更改到您的分支并将更改与现有代码 merge 的方法。它们是代码审查和变更管理的有用工具。

article from GitLab讨论命名特征的差异:

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.

“merge 请求”不应与 git merge 混淆命令。 “pull 请求”也不应与 git pull 混淆。命令。这两个 git 命令都在 pull 请求和 merge 请求的幕后使用,但 merge/pull 请求指的是比这两个命令更广泛的主题。

关于git - pull 请求与 merge 请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22199432/

相关文章:

git - 获取任意 git 对象的 SHA 的最简单方法?

docker - 由于 "no such file or directory"导致 gitlab CI 失败

docker - gitlab-ci 构建 asp.net core docker

github - 如何引用 github 上的特定问题评论?

npm - Gitlab CI : npm doesn't like the cached node_modules

bash - 总是提示在 git 中输入 stash 消息

php - 如何将 PhpCsFixer 限制为暂存文件?

java - 从源代码中提取时,我的模块似乎没有在 IntelliJ 中正确设置

从子文件夹中 Git 多个子项目?

macos - 与 Finder 集成的 Git 客户端