Git – Effective Git Workflow for Small Teams

gitteamworkversion controlworkflows

I'm working on a git workflow to implement in a small team. The core ideas in the workflow:

  • There is a shared project master that all team members can write to
  • All development is done exclusively on feature branches
  • Feature branches are code reviewed by a team member other than the branch author
  • The feature branch is eventually merged into the shared master and the cycle starts again

The article explains the steps in this cycle in detail:

https://github.com/janosgyerik/git-workflows-book/blob/small-team-workflow/chapter05.md

Does this make sense or am I missing something?

Best Answer

I like the git flow branching model. The master branch is left alone most of the time, it only contains releases. The develop branch should be stable at all times, and the feature branches can be broken.

You can also combine this with continuous integration by merging develop into your feature branch and your feature branch into develop. Of course you should only merge something into develop when you're confident that things are working and do not break.

Related Topic