1. 程式人生 > >git pull request 流程

git pull request 流程

 

git pull request 用於在 fork 官方 repo 到個人 github, 在本地修改後,向官方 repo 請求合併。在官方團隊審查過程式碼後,就可以將自己所做的改動合併到官方 repo 的 branch。

流程

  • fork
    在 github 上 fork 別人的 repo 到自己 github.
  • clone
    clone 到本地後開新的 branch 做修改
  • commit
    修改後推送到自己的 github 的 new branch 上
  • pull request
    在 github 上發起 pull request, 選擇要請求合併的分支
  • discuss and review

    repo 的團隊審查程式碼。
  • merge
    repo 的團隊審查通過後會合併到官方的 repo 的 master 或其他 branch 中,然後關閉這個 pull request.