Cisco
200-901 · Question #173
How does a developer create and switch to a new branch called 'my-bug--fix', to develop a product fix?
The correct answer is A. git checkout my-bug-fix. The git checkout command accepts a -b argument that acts as a convenience method which will create the new branch and immediately switch to it. You can work on multiple features in a single repository by switching between them with git checkout.
Software Development and Design
Question
How does a developer create and switch to a new branch called 'my-bug--fix', to develop a product fix?
Options
- Agit checkout my-bug-fix
- Bgit branch -b my-bug-fix
- Cgit check -b my-bug-fix
- Dgit branch my-bug fix
How the community answered
(28 responses)- A93% (26)
- C4% (1)
- D4% (1)
Explanation
The git checkout command accepts a -b argument that acts as a convenience method which will create the new branch and immediately switch to it. You can work on multiple features in a single repository by switching between them with git checkout.
Topics
#Git#Version Control#Branching#Developer Workflow
Community Discussion
No community discussion yet for this question.