What is the difference between “git branch” and “git checkout -b”?

I used git checkout -b to create a new branch. I think that git branch does the same thing.
How do these two commands differ, if they differ at all?

7 Answers
7

Leave a Comment