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

1 Answer

0 votes
by

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.

...