in Technology by

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

Please log in or register to answer this question.

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.

Related questions

...