你能解释一下 和 之间的区别git show test.rb
吗git show HEAD:test.rb
?
命令git show HEAD:test.rb
返回:
test file contents
而git show test.rb
返回:
commit a8e90b3dbf4eed03cdbb3cd3b99f98e9153c7219
Author: Misha Moroshko <michael.moroshko@gmail.com>
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