The command git _______ is used to create a new branch and switch to it in one step.
- branch
- checkout -b
- newbranch
- switchbranch
The correct command is git checkout -b . This command creates a new branch and switches to it in one step, saving you from the need to create a branch and then switch to it separately.
Loading...
Related Quiz
- What are the challenges of using Git in conjunction with build automation tools?
- Which Git command is typically used to upload your local repository to a cloud platform?
- A team is transitioning a large legacy codebase to Git. They encounter issues with large binary files. What Git feature should they consider using?
- A developer accidentally commits a large binary file. What Git feature should they use to remove this file from history while retaining current changes?
- During a code review, a team member notices that a commit contains a bug. What Git feature can they use to identify who made the specific changes?