From a517c08fb32d6ed004b7c35b320e0686d36589f1 Mon Sep 17 00:00:00 2001 From: Mike Date: Mon, 18 Jul 2022 19:29:05 +0200 Subject: [PATCH] adding new post --- _posts/2022-7-18-GitRevert.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/_posts/2022-7-18-GitRevert.md b/_posts/2022-7-18-GitRevert.md index 30da62a..568755d 100644 --- a/_posts/2022-7-18-GitRevert.md +++ b/_posts/2022-7-18-GitRevert.md @@ -12,11 +12,7 @@ This command allow us to remove our last commit, in case of our commit has been * If we have not commited our changes You can revert the change using this command: -`git reset --soft HEAD~1` (if you wish to keep your changes) - -or - -`git reset --soft HEAD~1` (if you do not want to keep your changes) +`git reset --soft HEAD~1` (if you wish to keep your changes) or `git reset --soft HEAD~1` (if you do not want to keep your changes) I hope these commands can be helpfull for you, specially on those moments that we feel stressed by a mistake.