This repository is used for training purposes about Trunk-based Development workflow.
- Start a feature branch: Start by creating a new short-lived feature branch from the
main/trunkbranch.
git checkout -b feature/new-feature main- Work on the short-lived feature branch (< 2 days) & few file changes.
- Add feature flags for incompleted feature.
- Make sure the source is releasable (with both cases: the feature flag enabled & disabled).
- Merge the feature branch into the
mainbranch
git checkout main
git merge --no-ff feature/new-feature
git push origin main- Delete the feature branch