I am working through the git immersion tutorial. We are up to checking out a branch. The instructions say to type the following
$ git checkout <hash>
$ cat hello.rb
It says that the command depends on the has values in the repo and my hash values will be different than theirs so I'm supposed to substitute the proper hash value for my repo. How do I know what to substitute for my hash value? They're using some long number but I don't see a number on my screen at all?
In addition I'm a little lost in the tutorial what exactly are they having me do? I've done other tutorials and they've told me to use get checkout master, so is this different?
Thanks for any context on this in general as well as what I need to do to get to this hash. I wanted to add an screen capture image to help clarify, but I'm new so it wouldn't let me. I'll copy the text hopefully that help...
$ git checkout 9416416
Note: checking out '9416416'.
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 9416416... First Commit
$ cat hello.rb
puts "Hello, World"