Git workflow
If you follow the agreed git branching model, smooth peer reviews and painless deployments are guaranteed.
Permanent branches
No single change will ever be applied directly on any of the permanent branches. Changes always first mature in temporary branches, until they entirely meet the Definition of Done.
master
master
This branch is used on the production environment, and is released periodically.
hotfix/hotfix
hotfix/hotfix
Gets updated with
master
when possible and needed (after each release to production).This branch should always kept clean for emergencies.
Temporary branches
Feature branches
Each issue gets its own feature branch.
All feature branches should be branched from the
master
branch.All feature branch pull requests should have
master
as base branch.The naming for the feature branches is:
Examples are:
Only when the Definition of Done is entirely met, changes are merged back to the master
branch.
Hotfix branches
An issue might require a hotfix that needs to be brought to production as soon as possible. All hotfix branches should be branched from the hotfix/hotfix
branch.
The naming for the hotfix branches is:
Examples are:
Only when the Definition of Done is entirely met, changes are merged back to the hotfix/hotfix
and master
branches.
Last updated
Was this helpful?