git checkout まとめ
###特定のバージョンに戻る
git checkout <コミットハッシュ>
もとのバージョンに戻りたいなら
git checkout <もとのブランチ>
###特定のバージョンのファイルを取得する
git checkout 8f87b8a /path/to/xxx.php
###ブランチを作成してそのブランチに切り替える
git checkout -b [branch name]
git checkout -b [new branch name] [base branch name or commit]
git checkout -b new_local_branch_name origin/other_branch