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
masterThis branch is used on the production environment, and is released periodically.
hotfix/hotfix
hotfix/hotfixGets updated with
masterwhen 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
masterbranch.All feature branch pull requests should have
masteras base branch.The naming for the feature branches is:
feature/{Jira issue-number}
Examples are:
feature/UBR-100
feature/UBR-330Only 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:
hotfix/{Jira issue-number}Examples are:
hotfix/UBR-325
hotfix/UBR-466Only when the Definition of Done is entirely met, changes are merged back to the hotfix/hotfix and master branches.
Last updated
Was this helpful?