Skip to content

devsuccess101/bootcamp-git-trunk-based

Repository files navigation

Git Training

This repository is used for training purposes about Trunk-based Development workflow.

Daily Workflow

  1. Start a feature branch: Start by creating a new short-lived feature branch from the main/trunk branch.
git checkout -b feature/new-feature main
  1. 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).
  1. Merge the feature branch into the main branch
git checkout main
git merge --no-ff feature/new-feature
git push origin main
  1. Delete the feature branch

Releases

No releases published

Packages

No packages published