Which command is used to create a new branch in Git?

  • git add
  • git branch
  • git checkout -b
  • git commit -m
The command git checkout -b is used to create a new branch in Git. This command creates a new branch with the specified name and switches to it, allowing developers to start working on a new feature or bug fix.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *