Step 1: Understand what 'git flow release finish' does
This command merges the release branch into both master and develop, tags the release, and deletes the release branch.
Step 2: Identify the branch after finishing release
After finishing, Gitflow switches to master branch by default.
Final Answer:
The branch is switched to master. -> Option A
Quick Check:
Release finish switches to master [OK]
Hint: Release finish merges and switches to master [OK]
Common Mistakes:
Assuming branch stays on release
Thinking it switches to develop
Confusing feature branches with release
4. You ran git flow feature finish login but your changes are not in develop. What is the likely problem?
medium
A. You forgot to push the develop branch after finishing the feature.
B. You did not commit changes before finishing the feature.
C. You started the feature branch from master instead of develop.
D. You finished the feature on the master branch.
Solution
Step 1: Recall feature branch base in Gitflow
Feature branches should start from develop to ensure changes merge back there.
Step 2: Analyze why changes are missing in develop
If the feature branch was started from master, finishing it merges changes into master, not develop, causing missing updates in develop.
Final Answer:
You started the feature branch from master instead of develop. -> Option C
Quick Check:
Feature base must be develop [OK]
Hint: Feature branches must start from develop [OK]
Common Mistakes:
Assuming finishing auto-pushes changes
Not committing before finishing
Confusing master and develop as base
5. Your team wants to prepare a hotfix for a critical bug in production while a release is in progress. According to Gitflow, which sequence of commands correctly handles this situation?