undo last git commit
authorPhilip Durbin <philipdurbin@gmail.com>
Wed, 17 Jul 2013 20:40:46 +0000 (16:40 -0400)
committerPhilip Durbin <philipdurbin@gmail.com>
Wed, 17 Jul 2013 20:40:46 +0000 (16:40 -0400)
git.mdwn

index 8cbf3f06e317a9b51f304a29b0851e9b9c821c19..e0a7f52799ad9911d274738822993dca0ba8d2a6 100644 (file)
--- a/git.mdwn
+++ b/git.mdwn
@@ -2,6 +2,10 @@
 
 ## Howto
 
+### How to undo/revert your last commit 
+
+    git reset --soft HEAD^
+
 ### How to tell which files git is tracking
 
     git ls-files