From 568013c37f6646dff68afc0a5e32ba7b71ca1447 Mon Sep 17 00:00:00 2001 From: Jim Date: Tue, 4 Feb 2014 08:19:48 +0800 Subject: [PATCH] modify post 14-02-03 --- _posts/2014/2014-02-03-Git-cook-book.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2014/2014-02-03-Git-cook-book.md b/_posts/2014/2014-02-03-Git-cook-book.md index 346fcc4..2627558 100644 --- a/_posts/2014/2014-02-03-Git-cook-book.md +++ b/_posts/2014/2014-02-03-Git-cook-book.md @@ -75,7 +75,7 @@ git reset --hard 4a155e5 and then git push -f origin master ``` -**Notice: git revert will not work here!** +**Notice** git revert will not work here! `git revert` can only revert one commit. If you have commit `11,22,33,44,` and you `git revert 22` then you will have commit `11,33,44`, but if you `git reset --hard 22` and commit, then you could only have `11` in your commit history. ### How to find a lost commit? --------------