I am learning git, and I have difficulty understanding how some commands relate to english, particularly
git checkout --file.
From context (https://try.github.io/levels/1/challenges/17 : Files can be changed back to how they were at the last commit by using the command: git checkout -- . Go ahead and get rid of all the changes since the last commit for octocat.txt), I understand it means something like return your code to the state it used to be in when you committed changes for octocat.txt last time.
And this is meant by
checkout? Could you please point me to the closest meaning (from here maybe http://www.merriam-webster.com/dictionary/checkout) that they were trying to pass? (otherwise, it makes it very difficult to learn since it becomes meaningless)