QA
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→

More Git & GitHub Interview Questions

Beginner LevelGit & GitHub

Compare git rebase versus git merge and explain how git bisect finds regressions.

Beginner LevelGit & GitHub

What is the difference between git init and git clone?

Beginner LevelGit & GitHub

What are the Three Trees in Git (Working Directory, Staging Area / Index, Commit History)?