git checkout
ブランチを切り替えたり
ワーキングツリー
にあるファイルを復元したりする
Gitコマンド
。
https://git-scm.com/docs/git-checkout