culTest

    One of the 25 questions in this topic

    How much do you know about Git & GitHub: Branches and Collaboration?

    Which command is used to create a new branch and switch to it immediately?

    Answers

    git branch -new
    git checkout -b <name>Correct
    git branch -move
    git switch -c

    The -b flag is a shortcut for branch and checkout at the same time.