What command is used to create a new branch in Git?
- git branch new-branch
- git checkout -b new-branch
- git create branch new-branch
- git new-branch
The correct command to create a new branch in Git is git checkout -b new-branch. This command creates a new branch and switches to it in one step.
Loading...
Related Quiz
- What does the term "NoSQL" signify in database management?
- In a complex application, you have different algorithms for processing data, and you want to be able to switch between them dynamically. Which design pattern would you use to accomplish this?
- Your organization has experienced a data breach. Outline the steps you would take to respond and recover from the incident.
- You realize that the last few commits in your Git history are incorrect and need to be removed. What command(s) would you use to accomplish this?
- Which server-side language is known for its scalability and event-driven architecture, commonly used with frameworks like Express.js?