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?
1) git add feature.py
2) git checkout -b feature
3) git commit -m feature file added
1,2,3
2,1,3
3,2,1
2,3,1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!