title: What is the difference between "git show test.rb" and "git show HEAD:test.rb"?
body: <p>Could you explain the difference between <code>git show test.rb</code> and <code>git show HEAD:test.rb</code>?</p>
  
  <p>The command <code>git show HEAD:test.rb</code> returns:</p>
  
  <pre><code>test file contents
  </code></pre>
  
  <p>while <code>git show test.rb</code> returns:</p>
  
  <pre><code>commit a8e90b3dbf4eed03cdbb3cd3b99f98e9153c7219 
  Author: Misha Moroshko &lt;michael.moroshko@gmail.com&gt; 
  Date:   Thu Oct 27 17:03:04 2011
  +1100
  
      asd
  
  diff --git a/test.rb b/test.rb new file mode 100644 index
  0000000..b48e119
  --- /dev/null
  +++ b/test.rb @@ -0,0 +1 @@
  +test file contents
  </code></pre>