In both cases, checkout updates your working tree (by checking out either all or just some files from a commit), just when you're switching branches it moves your HEAD pointer too
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments