Agile git Workflow

http://geewax.org/2009/11/21/agile-git-workflow.html より。
ここで推奨されてるフローは

  1. Branch off of master to work on the feature
  2. Work, work, work, commit, commit, commit
  3. Pull down any updates to master
  4. Rebase and squash the feature branch to master’s HEAD
  5. Merge the feature branch back to master
  6. Push up to the shared repository

との事。push する前に master を update して rebase しなさい、との事。あまり rebase の意味が分かってなかったんですが、曰く_Keeping the shared repository linear_との事。ググッてみたら以下なコンテンツに hit

なるほど。確かに線形になりますな。

共用リポジトリ

アクセスできる人が複数だとこの方法が良いように見えます。共用リポジトリにアクセスできる人が一人だけであれば patch のやりとりで事は済みますが、この方式だと色々な意味で分かりやすいですね。