title: How to retrieve a single file from a specific revision in Git?
body: <p>I have a Git repository and I'd like to see how some files looked a few months ago. I found the revision at that date; it's <code>27cf8e84bb88e24ae4b4b3df2b77aab91a3735d8</code>. I need to see what one file looks like, and also save it as a ("new") file.</p>
  
  <p>I managed to see the file using <code>gitk</code>, but it doesn't have an option to save it. I tried with command-line tools, the closest I got was:</p>
  
  <pre><code>git-show 27cf8e84bb88e24ae4b4b3df2b77aab91a3735d8 my_file.txt
  </code></pre>
  
  <p>However, this command shows a diff, and not the file contents. I know I can later use something like <code>PAGER=cat</code> and redirect output to a file, but I don't know how to get to the actual file content.</p>
  
  <p>Basically, I'm looking for something like <strong>svn cat</strong>.</p>