git log --oneline
authorPhilip Durbin <philipdurbin@gmail.com>
Thu, 18 Apr 2013 16:26:22 +0000 (12:26 -0400)
committerPhilip Durbin <philipdurbin@gmail.com>
Thu, 18 Apr 2013 16:26:22 +0000 (12:26 -0400)
git.mdwn

index 50be8b4ac755e9d122c3e4d84d439347434ed800..eb275f764f3704529dc7c5c76cee90beba259500 100644 (file)
--- a/git.mdwn
+++ b/git.mdwn
@@ -6,6 +6,10 @@
 
     git ls-files
 
+### How to get the short sha1 for a commit
+
+    git log --oneline
+
 See also http://stackoverflow.com/questions/2405305/git-how-to-tell-if-a-file-is-git-tracked-by-shell-exit-code
 
 ### Fix your email address in your commits