We can create a new branch using the command git branch <branch_name>
.
For example, to create a testing
branch, type below command in the terminal
git branch testing
To checkout to testing branching, type below command
git checkout testing
With -b
switch we can combine the above two steps into one. For example, to create the dev
branch and checkout to it at the same time, user below command
git checkout -b dev
~/devops
directory git branch
commandmaster
then checkout to master
branch using git checkout master
commandfeature_a
and checkout to that branch
No hints are availble for this assesment
Answer is not availble for this assesment
Note - Having trouble with the assessment engine? Follow the steps listed here
Loading comments...