
ブランチの作成と新しいブランチへの切り替えを行いたい場合、 “git checkout” コマンドに “-b” オプションをつけて実行します。
$ git checkout -b feature-branch
Switched to a new branch 'feature-branch'
$
これは次と同じです。
$ git branch feature-branch
$ git checkout feature-branch
参考:
https://git-scm.com/book/ja/v2/
https://help.github.com/