Question: Branching in git Suppose you are working on a default branch named 'master' and you want to create a new branch named 'feature'. From 'master',
Branching in git
Suppose you are working on a default branch named 'master' and you want to create a new branch named 'feature'. From 'master', you want to navigate to 'feature' and add a file named 'feature.py and commit it What would be the sequence of commands that you will need to follow in terminal?
git add feature.py
git checkout b feature
git commit m feature file added
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
