Updates files in the working tree to match the version in the index or the specified tree. If no paths are given, git checkout will also update HEAD to set the specified branch as the current branch.
git checkout -- <file-name>
git branch <branch-name>
git checkout <branch-name>
git checkout -b <branch-name>
git stash
git checkout --force <branch-name>
git checkout v1.0
git checkout <commit-sha>
git reflog