Pull request vs Merge request

前端 未结 6 1241
情深已故
情深已故 2020-11-30 15:54

What is the difference between a Pull request and a Merge request?

In GitHub, it\'s a Pull Request while in GitLab, for example, it\'s a Merge Request. So, is there a

6条回答
  •  时光取名叫无心
    2020-11-30 16:56

    There is a subtle difference in terms of conflict management. In case of conflicts, a pull request in Github will result in a merge commit on the destination branch. In Gitlab, when a conflict is found, the modifications made will be on a merge commit on the source branch.

    See https://docs.gitlab.com/ee/user/project/merge_requests/resolve_conflicts.html

    "GitLab resolves conflicts by creating a merge commit in the source branch that is not automatically merged into the target branch. This allows the merge commit to be reviewed and tested before the changes are merged, preventing unintended changes entering the target branch without review or breaking the build."

提交回复
热议问题