I’d prefer to simply perform a `git checkout <branchname>` and if that fails, print an error message. I don’t find it good behavior to try to create a branch. (As an added bonus, a typo in the branch name will be caught more quickly.)