Typography

活版印字


  • Home
  • Archive
  • Categories
  • Tags
  •  

© 2020 alincode

Theme Typography by Makito

Proudly published with Hexo

git flow request pull

Posted at 2016-03-17 git 

因為專案已經上線了,從原本的 github flow,改用 git flow,這樣才能同時 hotfix 跟調比較大幅度的變動。

github flow 只有一個 master,每個人都發 pull request,由具有 merge 權限的人 code review 後,然後才會 merge 進 master,適合一天多次 release 的專案,不過這總做法,對已上線的系統,只有一個主分支,實務上是不可行的。

git flow 基本上是每個人都可以直接 merge 進 develop,不需發 pr,等 release date,才從 develop 一次 merge 到 master。

不過因為 team 的成員都是 remote 工作者,我想 pull request 這個流程還是有必要的,所以我採用一個混搭模式。

hotfix

開一個新的分支,開始修 bug

1
2
3
git checkout -b hotfix/issue-1 master
git add .
git commit -m 'fixed bug'

merge master

1
2
git checkout master
git merge hotfix/issue-1

merge develop

1
2
git checkout develop
git merge hotfix/issue-1

第一個 pull request

base fork: company-repo at master
head fork: your-repo at master

第二個 pull request

base fork: company-repo at develop
head fork: your-repo at develop

Share 

 Previous post: Speed up Server Side Rendering 重點整理 Next post: Request Entity Too Large 

© 2020 alincode

Theme Typography by Makito

Proudly published with Hexo