title: Git - finding a filename from a SHA1
body: <p>I added a file to the index with:</p>
  
  <pre><code>git add somefile.txt
  </code></pre>
  
  <p>I then got the SHA1 for this file with:</p>
  
  <pre><code>git hash-object somefile.txt
  </code></pre>
  
  <p>I now have a SHA1 and I would like to retrieve the filename of the object in the index using the SHA1.</p>
  
  <pre><code>git show 5a5bf28dcd7944991944cc5076c7525439830122
  </code></pre>
  
  <p>This command returns the file contents but not the name of the file. </p>
  
  <p>How do I get the full filename and path back from the SHA1?</p>