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
git checkout -b
git branch
git branch creates the branch but you remain in the current branch that you have checked out.
git checkout -b creates a branch and checks it out.
It could be considered a short form of:
git branch name git checkout name