Intermediate LevelGit & GitHub
What is GitFlow branching strategy?
❓ Interview Prompt: Explain GitFlow branching model: main, develop, feature/*, release/*, and hotfix/* branches.
GitFlow is a structured branching model allocating distinct roles to main (production-ready releases), develop (integration), feature/ (new features), release/ (release polish), and hotfix/* (urgent production patches).
Code Implementation Example
bash
git switch develop
git switch -c feature/shopping-cart
git switch develop
git merge --no-ff feature/shopping-cart💡GitFlow feature branch lifecycle off develop branch.
🎯 Interview Key Takeaway
GitFlow assigns dedicated roles to main, develop, feature, release, and hotfix branches for scheduled release management.
#GitFlow#Branching Strategy#Intermediate
Back to all Git & GitHub Questions→