in Technology by (1.9m points)

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

1 Answer

0 votes
by (1.9m points)

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.

...