SOFTWARE ENGINEERING

EMERGING TRENDS IN SOFTWARE ENGINEERING

DEVOPS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The ____ Creates a new local branch from the current branch’s tip.
A
git checkout
B
git checkin
C
git checkout-b
D
git clone
Explanation: 

Detailed explanation-1: -git checkout-b BRANCH NAME creates a new branch and checks out the new branch while git branch BRANCH NAME creates a new branch but leaves you on the same branch.

Detailed explanation-2: -Change to the root of the local repository. $ cd <repo name> List all your branches: $ git branch-a. Checkout the branch you want to use. $ git checkout <feature branch> Confirm you are now working on that branch: $ git branch.

There is 1 question to complete.