culTest

    One of the 100 questions in this topic

    How much do you know about Git and Version Control?

    Which command is used to create a new branch?

    Answers

    git create-branch
    git new
    git branchCorrect
    git checkout -b

    The git branch command followed by the branch name is used to create a new branch. However, this only creates the branch and does not switch to it. To create and switch in one step, you use git checkout -b branch-name.