For just looking (to 'see' as you ask) do
git checkout [the name of the sha]
You get the sha from doing
git log
Here you see me checking out the initial commit of a repository with hundreds of commits:
$ git checkout 772df05 # Enough of the sha to be unique, often 6-8 chrs.
Note: checking out '772df05'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at 772df05... Initial commit
Looks at files and then...
$ git checkout master
A final note - before switching branches you may need to take of two things:
First any locally changed files, that already exist in git (as opposed to new files) should be either added or stashed. Added is probably the easiest when learning git.
Secondly, any new or changed files that have been git add
ed should be committed - even if just as a "wip".