Bird
0
0

A team uses Git flow workflow: feature branches, develop branch, and main branch. A developer wants to add a hotfix. What is the correct workflow step?

hard📝 Workflow Q8 of 15
Git - Collaboration Workflows
A team uses Git flow workflow: feature branches, develop branch, and main branch. A developer wants to add a hotfix. What is the correct workflow step?
ADirectly commit hotfix to develop branch
BPush hotfix to feature branch without review
CCreate a hotfix branch from main, fix, then merge into main and develop
DDelete develop branch and fix on main
Step-by-Step Solution
Solution:
  1. Step 1: Understand Git flow hotfix process

    Hotfix branches start from main to fix urgent bugs.
  2. Step 2: Merge hotfix properly

    After fixing, merge hotfix into both main and develop to keep branches updated.
  3. Final Answer:

    Create a hotfix branch from main, fix, then merge into main and develop -> Option C
  4. Quick Check:

    Git flow hotfix = branch from main, merge main & develop [OK]
Quick Trick: Hotfix branch from main, merge back to main and develop [OK]
Common Mistakes:
  • Committing hotfix directly to develop
  • Pushing hotfix to feature branch without review
  • Deleting develop branch

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes