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.

Related questions

+1 vote
asked Jul 25, 2019 in Git by SakshiSharma
+1 vote
asked Jul 25, 2019 in Git by SakshiSharma
...