Small and short lived merge requests

Maintaining a branch with many changes over a long period of time is cumbersome and error prone. Even the best reviewers get tired and confused and will miss important changes in large merge requests. Use of feature flags can help ensure a feature can be merged before being complete while still enabling the commit to be deployable.

Examples

  • You're tasked with a new signup flow and it's a massive undertaking. Rather than making one large pull request, you break it into small chunks, such as 'Create signup page UI' and 'Add validation for signup form.' Each small merge request is reviewed and merged quickly, keeping the main branch up to date and reducing conflicts.