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
Full syntax:
git checkout -b [NEW_BRANCH] [FROM_BRANCH]
The [FROM_BRANCH] is optional. If there's no FROM_BRANCH, git will use the current branch.