git checkout

git checkout switches between branches or restores files to an earlier state.