Pull Request 可以和功能分支工作流、 Gitflow 工作流或 Forking 工作流一起使用。 但一个 Pull Request 要求要么分支不同要么仓库不同,所以不能用于集中式工作流。
在不同的工作流中使用 Pull Request 会有一些不同,但基本的过程是这样的:
push 分支修改到公开的 Bitbucket 仓库中。
Bitbucket 发起一个 Pull Request 。
review code ,讨论并修改。
Pull Request 。
本文后面内容说明,Pull Request 在不同协作工作流中如何应用。