Implementing Automation for Cisco Security Solutions (SAUTO) — Question 39
Which two commands create a new local source code branch? (Choose two.)
Answer options
- A. git checkout -b new_branch
- B. git branch -b new_branch
- C. git checkout -f new_branch
- D. git branch new_branch
- E. git branch -m new_branch
Correct answer: A, D
Explanation
The command 'git checkout -b new_branch' (option A) creates a new branch and switches to it, while 'git branch new_branch' (option D) only creates the branch without switching. The other options either do not create a branch or use incorrect syntax.