0
What is the difference between git checkout [branch name] and git checkout -b [branch name]?

Open 1 Answers 76 Views Technology

What is the difference between git checkout [branch name] and git checkout -b [branch name]?

1 Answer

0

The command git checkout [branch name] will switch from one branch to another.

The command git checkout -b [branch name] will create a new branch and also switch to it.

by (301k points)
...