Question 26
Scenario 2: Automated Git Workflow for Team Project
Context
A data science team uses Git for version control on a shared project. Multiple team members work on different features simultaneously. They follow a workflow where everyone works on separate branches and merges into the main branch through pull requests.
Current Setup:
• main branch: Production-ready code • dev branch: Development/testing code • Feature branches: Individual work (e.g., feature-data-cleaning, feature-visualization)
Based on the above data, answer the given subquestions.
When starting work on a new feature, what is the correct Git command sequence to create and switch to a new branch called feature-analysis?
git commit feature-analysis
git branch feature-analysis then git checkout feature-analysis
git push feature-analysis
git merge feature-analysis