From 80d2a09456e7786e178a389da4b3520105158812 Mon Sep 17 00:00:00 2001 From: rahul Date: Sun, 28 Aug 2016 08:19:20 +0530 Subject: [PATCH] Add revert in git cheat --- cheat/cheatsheets/git | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cheat/cheatsheets/git b/cheat/cheatsheets/git index 01657fc..5b809cb 100644 --- a/cheat/cheatsheets/git +++ b/cheat/cheatsheets/git @@ -142,3 +142,6 @@ git show :/cool # Undo parts of last commit in a specific file git checkout -p HEAD^ -- /path/to/file + +# Revert a commit and keep the history of the reverted change as a separate revert commit +git revert