0
0
Gitdevops~20 mins

Gitflow workflow - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Gitflow Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Purpose of the 'develop' branch in Gitflow
In the Gitflow workflow, what is the main purpose of the develop branch?
AIt is the branch where hotfixes are directly applied to fix production bugs.
BIt serves as the integration branch where features are merged before release.
CIt is the main branch that always contains production-ready code.
DIt is used only for experimental features that may never be released.
Attempts:
2 left
💡 Hint
Think about where developers combine their work before making a release.
💻 Command Output
intermediate
1:30remaining
Output of starting a feature branch in Gitflow
What is the expected output when running the command git flow feature start login in a Gitflow-enabled repository?
Git
git flow feature start login
A
Switched to a new branch 'feature/login'
Summary of commands to finish the feature.
BError: 'feature/login' branch already exists.
C
Switched to branch 'develop'
No feature branch created.
DFeature 'login' started but not switched to the branch.
Attempts:
2 left
💡 Hint
Starting a feature branch creates and switches to it.
🔀 Workflow
advanced
2:00remaining
Correct sequence to finish a release in Gitflow
What is the correct sequence of steps to finish a release branch in Gitflow?
A1,2,3,4
B3,1,2,4
C1,3,2,4
D2,1,3,4
Attempts:
2 left
💡 Hint
Think about finalizing the release for production and syncing develop.
Troubleshoot
advanced
1:30remaining
Error when finishing a hotfix branch
You run git flow hotfix finish v1.2.1 but get an error saying fatal: You are not currently on a branch. What is the most likely cause?
AYou have uncommitted changes preventing finishing the hotfix.
BThe hotfix branch 'hotfix/v1.2.1' does not exist.
CYou are in detached HEAD state and not on the hotfix branch.
DThe main branch is missing and cannot merge hotfix.
Attempts:
2 left
💡 Hint
Check which branch you are currently on before finishing.
Best Practice
expert
1:30remaining
Recommended practice for naming feature branches in Gitflow
Which naming convention for feature branches follows best practices in Gitflow to keep the repository organized?
AloginFeature
BfeatureLogin
Cfeat_login
Dfeature/login-page
Attempts:
2 left
💡 Hint
Consider readability and consistency with Gitflow defaults.